Skip to content

Commit 7dc7e75

Browse files
docs(login): new error event signature
1 parent 7420f51 commit 7dc7e75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guide/login/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export default class MyCustomLogin extends Login {
139139
// Bind the events
140140
this.on('login:start', () => console.log('Currently trying to log in...'));
141141
this.on('login:stop', () => console.log('Login was aborted or stopped'));
142-
this.on('login:error', err => console.error('An error occured while logging in', err));
142+
this.on('login:error', (message, exception) => console.error('An error occured while logging in', message, exception));
143143

144144
// To submit a login form (ex when you press a button):
145145
/*

0 commit comments

Comments
 (0)