Skip to content

Commit

Permalink
Fix refresh token lock key in authOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
walnuts1018 committed Nov 7, 2023
1 parent 4415dc4 commit 3d830a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion front/src/app/api/auth/[...nextauth]/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const authOptions: NextAuthOptions = {
if (user) {
token.role = user.role;
}
lock.acquire("refreshToken" + user.sub, async function (done) {
lock.acquire("refreshToken" + token.sub as string, async function (done) {
try {
if (account) {
token.refreshToken = account.refresh_token;
Expand Down

0 comments on commit 3d830a6

Please sign in to comment.