Skip to content

Commit

Permalink
fix introspect
Browse files Browse the repository at this point in the history
  • Loading branch information
shihjay2 committed Aug 11, 2024
1 parent 73bba47 commit 4185686
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/api/as/introspect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
if (result.docs[0]) {
res.status(200).json({
"active": true,
"access": result.docs[0].access
"access": result.docs[0].access_token.access
});
} else {
res.status(200).json({"active": false});
Expand Down

0 comments on commit 4185686

Please sign in to comment.