Skip to content

Instantly share code, notes, and snippets.

@evgeniy-logvinov
Last active January 7, 2020 14:27
Show Gist options
  • Select an option

  • Save evgeniy-logvinov/6e1ca971525821eddb7fd5f00a9a8ba4 to your computer and use it in GitHub Desktop.

Select an option

Save evgeniy-logvinov/6e1ca971525821eddb7fd5f00a9a8ba4 to your computer and use it in GitHub Desktop.
Sign out
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