Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export default class Auth {
- ...
- logout() {
- // Clear access token and ID token from local storage
- localStorage.removeItem('access_token');
- localStorage.removeItem('id_token');
- localStorage.removeItem('expires_at');
- // navigate to the home route
- Router.push('/');
- }
- }
Add Comment
Please, Sign In to add comment