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
Copy file name to clipboardExpand all lines: doc/7/essentials/events/index.md
+31-1Lines changed: 31 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,10 +59,19 @@ Triggered when the current session has been unexpectedly disconnected.
59
59
|`websocket/auth-renewal`| The websocket protocol si reconnecting to renew the token. See [Websocket Cookie Authentication](sdk/js/7/protocols/websocket/introduction#cookie-authentication). |
60
60
|`user/connection-closed`| The disconnection is done by the user. |
61
61
|`network/error`| An network error occured and caused a disconnection. |
62
-
## loginAttempt
62
+
63
+
## beforeLogin
64
+
65
+
Triggered before login attempt.
66
+
67
+
## afterLogin
63
68
64
69
Triggered when a login attempt completes, either with a success or a failure result.
65
70
71
+
## loginAttempt
72
+
73
+
Legacy event triggered when a login attempt completes, either with a success or a failure result.
74
+
66
75
**Callback arguments:**
67
76
68
77
`@param {object} data`
@@ -72,6 +81,27 @@ Triggered when a login attempt completes, either with a success or a failure res
72
81
|`success`| <pre>boolean</pre> | Indicate if login attempt succeed |
73
82
|`error`| <pre>string</pre> | Error message when login fail |
74
83
84
+
## beforeLogout
85
+
86
+
Triggered before logout attempt.
87
+
88
+
## afterLogout
89
+
90
+
Triggered when a logout attempt completes, either with a success or a failure result.
91
+
92
+
## logoutAttempt
93
+
94
+
Legacy event triggered when a logout attempt completes, either with a success or a failure result.
0 commit comments