fix: Refresh session (#10019)
* Refresh session 🔄 * Update apps/web/components/ui/UsernameAvailability/PremiumTextfield.tsx Co-authored-by: Omar López <[email protected]> * Update apps/web/components/ui/UsernameAvailability/UsernameTextfield.tsx Co-authored-by: Omar López <[email protected]> * Update packages/features/auth/lib/next-auth-options.ts Co-authored-by: Omar López <[email protected]> --------- Co-authored-by: Ansari <[email protected]> Co-authored-by: Shivam Kalra <[email protected]> Co-authored-by: Omar López <[email protected]>
This commit is contained in:
5 files changed
+9
-3
No files matched your search
@@ -349,7 +349,7 @@ export const AUTH_OPTIONS: AuthOptions = {
|
||||
},
|
||||
providers,
|
||||
callbacks: {
|
||||
async jwt({ token, user, account }) {
|
||||
async jwt({ token, user, account, trigger, session }) {
|
||||
const autoMergeIdentities = async () => {
|
||||
const existingUser = await prisma.user.findFirst({
|
||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
"handlebars": "^4.7.7",
|
||||
"jose": "^4.13.1",
|
||||
"lru-cache": "^9.0.3",
|
||||
"next-auth": "^4.20.1",
|
||||
"next-auth": "^4.22.1",
|
||||
"nodemailer": "^6.7.8",
|
||||
"otplib": "^12.0.1"
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user