Last active
January 7, 2020 14:27
-
-
Save evgeniy-logvinov/6e1ca971525821eddb7fd5f00a9a8ba4 to your computer and use it in GitHub Desktop.
Sign out
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| router.post('/signout', async (req, res, next) => { | |
| try { | |
| const refreshToken = getRefreshToken(req); | |
| const signout = await securityService.signout({ refreshToken }); | |
| res.send(signout); | |
| } catch (e) { | |
| next(e); | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment