Skip to content

Commit

Permalink
Apply change for studio auth encoder too
Browse files Browse the repository at this point in the history
  • Loading branch information
dac09 committed Nov 28, 2023
1 parent d67f1ca commit 56b637b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ export const getDBAuthHeader = async (userId?: string) => {
)
}

const { encryptSession } = await import('@redwoodjs/auth-dbauth-api')
const {
default: { encryptSession },
} = await import('@redwoodjs/auth-dbauth-api')

const id = isNumeric(userId) ? parseInt(userId) : userId
const cookie = encryptSession(JSON.stringify({ id }) + ';' + uuidv4())
Expand Down

0 comments on commit 56b637b

Please sign in to comment.