Skip to content

Commit

Permalink
chore(core): use arrow function for generateSessionToken (#6200)
Browse files Browse the repository at this point in the history
* fix

* prettify

* Update init.ts

Co-authored-by: Nico Domino <yo@ndo.dev>
Co-authored-by: Balázs Orbán <info@balazsorban.com>
  • Loading branch information
3 people authored Jan 9, 2023
1 parent 3539a35 commit d8481f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/lib/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export async function init({
strategy: authOptions.adapter ? "database" : "jwt",
maxAge,
updateAge: 24 * 60 * 60,
generateSessionToken: crypto.randomUUID,
generateSessionToken: () => crypto.randomUUID(),
...authOptions.session,
},
// JWT options
Expand Down

1 comment on commit d8481f3

@vercel
Copy link

@vercel vercel bot commented on d8481f3 Jan 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.