You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
⚠ Keep in mind that Auth.js doesn't update the user after the first sign-in.
180
+
> ⚠ Keep in mind that Auth.js doesn't update the user after the first sign-in. If you want to update the user on every sign-in, you can use the `signIn` event. (See [Events](#events))
Auth.js emits some [events](https://authjs.dev/reference/nextjs#events) that you can listen to. This plugin extends the events with additional parameters like the `adapter` and `payload` instance.
257
+
258
+
_More information about the events can be found in the [Auth.js documentation](https://authjs.dev/reference/nextjs#events)._
259
+
260
+
The following events are available:
261
+
262
+
- signIn
263
+
- signOut
264
+
- createUser
265
+
- updateUser
266
+
- linkAccount
267
+
- session
268
+
269
+
## `signIn` Event
270
+
271
+
The `signIn` event is emitted when a user successfully signs in. For example, you could use this event to update the user's name on every sign-in:
0 commit comments