Skip to content

Commit

Permalink
fix(web): Convert key back to a binary buffer
Browse files Browse the repository at this point in the history
Signed-off-by: Nyeki.py <[email protected]>
  • Loading branch information
Nekidev authored Jan 26, 2024
1 parent df5501e commit 26f7d1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web/src/app/api/auth/oauth2/anilist/callback/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export async function GET(request: NextRequest) {
redirect(
`/code?status=success&key=${encrypt(
json.access_token,
cookieStore.get("key")?.value!,
Buffer.from(cookieStore.get("key")?.value!, "hex"),
Buffer.from(cookieStore.get("iv")?.value!, "hex")
)}`
);
Expand Down

0 comments on commit 26f7d1a

Please sign in to comment.