Skip to content
This repository has been archived by the owner on Oct 14, 2020. It is now read-only.

Handle user logout #76

Closed
eddyystop opened this issue Oct 6, 2018 · 0 comments
Closed

Handle user logout #76

eddyystop opened this issue Oct 6, 2018 · 0 comments

Comments

@eddyystop
Copy link
Member

feathersjs-ecosystem/authentication#680 (comment)

import decode from 'jwt-decode';
app.on('logout', ({accessToken}) => {
  const {userId} = decode(accessToken)
  const user = app.service("users").get(userId)
});
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants