Update signIn and signOut to notify auth state changes
cgen-45a41023af394c5195abf123501266df
This commit is contained in:
parent
cd3ebd8852
commit
04f4418803
1 changed files with 3 additions and 0 deletions
|
|
@ -72,6 +72,9 @@ class MockAuthService {
|
|||
// Save to localStorage
|
||||
localStorage.setItem('mock_user', JSON.stringify(user));
|
||||
|
||||
// Notify auth state change
|
||||
setTimeout(() => this.notifyAuthChange('SIGNED_IN'), 50);
|
||||
|
||||
return {
|
||||
data: {
|
||||
user,
|
||||
|
|
|
|||
Loading…
Reference in a new issue