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.

Revisions

  1. evgeniy-logvinov revised this gist Jan 7, 2020. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions signout.js
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,8 @@
    router.post('/signout', async (req, res, next) => {
    try {
    const refreshToken = getRefreshToken(req);
    const logout = await securityService.signout({ refreshToken });
    res.send(logout);
    const signout = await securityService.signout({ refreshToken });
    res.send(signout);
    } catch (e) {
    next(e);
    }
  2. evgeniy-logvinov created this gist Jan 7, 2020.
    9 changes: 9 additions & 0 deletions signout.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    router.post('/signout', async (req, res, next) => {
    try {
    const refreshToken = getRefreshToken(req);
    const logout = await securityService.signout({ refreshToken });
    res.send(logout);
    } catch (e) {
    next(e);
    }
    });