Skip to content

Commit

Permalink
fix: Fix auth button (#324)
Browse files Browse the repository at this point in the history
* Change /auth/user-info endpoint to async function.

* Update package-lock.json.
  • Loading branch information
abdulla-ashurov committed Aug 7, 2023
1 parent 62fecf7 commit 3f88668
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ class App {
app.post(`/account/set-default-role`, LogToWebHook.verifyHookSignature, new AccountController().setupDefaultRole)

// LogTo user info
app.get('/auth/user-info', (req, res) => {
res.json(req.user);
app.get('/auth/user-info', async (req, res) => {
return res.json(req.user)
});

// static files
Expand Down

0 comments on commit 3f88668

Please sign in to comment.