Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion routes/frontend.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default async function frontend (fastify, opts) {
async function onLoginCallback (req, reply) {
// In every route and hook, the `this` is the
// current Fastify instance!
const token = await this.github.getAccessTokenFromAuthorizationCodeFlow(req)
const { token } = await this.github.getAccessTokenFromAuthorizationCodeFlow(req)
await this.isUserAllowed(token.access_token)

// Keep always security in mind!
Expand Down