Skip to content

Commit 8c236a1

Browse files
authored
chore(Auth): add singedIn and signedOut Hub events in v6 (aws-amplify#6048)
* chore: add SignIn and SignOut events
1 parent b2dee8a commit 8c236a1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/pages/lib-v1/auth/auth-events/q/platform/[platform].mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ import { Hub } from 'aws-amplify/utils';
5555

5656
Hub.listen('auth', ({ payload }) => {
5757
switch (payload.event) {
58+
case 'signedIn':
59+
console.log('user have been signedIn successfully.');
60+
break;
61+
case 'signedOut':
62+
console.log('user have been signedOut successfully.');
63+
break;
5864
case 'tokenRefresh':
5965
console.log('auth tokens have been refreshed.');
6066
break;

0 commit comments

Comments
 (0)