Skip to content

Commit

Permalink
fix: verifySignature error on docker, fix anse-app#384
Browse files Browse the repository at this point in the history
  • Loading branch information
ddiu8081 committed Apr 25, 2023
1 parent 5e98986 commit 3d91374
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async function digestMessage(message: string) {

export const generateSignature = async(payload: AuthPayload) => {
const { t: timestamp, m: lastMessage } = payload
const secretKey = import.meta.env.PUBLIC_SECRET_KEY as string
const secretKey = import.meta.env.PUBLIC_SECRET_KEY as string || ''
const signText = `${timestamp}:${lastMessage}:${secretKey}`
// eslint-disable-next-line no-return-await
return await digestMessage(signText)
Expand Down

0 comments on commit 3d91374

Please sign in to comment.