Skip to content

Commit

Permalink
SCRUM-147 Removed userID from asyncStorage if user session is not valid
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadfadhli committed Oct 17, 2024
1 parent d3c191d commit ed4c7b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/iQMA-Skills-Builder/context/AuthContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export const AuthProvider = ({children}: {children: React.ReactNode}) => {
await AsyncStorage.setItem('userID', user.sub);
}
} else {
await AsyncStorage.removeItem('userID');
setIsLoading(false);
}
setIsLoading(false);
Expand Down

0 comments on commit ed4c7b2

Please sign in to comment.