Skip to content

Commit

Permalink
feat: add JWT decoding functionality and update
Browse files Browse the repository at this point in the history
authorization header
  • Loading branch information
jvondermarck committed Apr 13, 2024
1 parent 863b06e commit b6fdd3d
Show file tree
Hide file tree
Showing 7 changed files with 861 additions and 597 deletions.
2 changes: 1 addition & 1 deletion backend/app/controllers/users_controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default class UsersController {

const jwt = this.jwtService.generateAccessToken(user)

return response.header('Authorization', jwt).json(user)
return response.header('Authorization', `Bearer ${jwt}`).json(user)
}

async update({ request, response }: HttpContext) {
Expand Down
Loading

0 comments on commit b6fdd3d

Please sign in to comment.