Redirect Callback
// GET /api/callback?code=...&state=...
const callbackHandler = async (req: NextApiRequest, res: NextApiResponse) => {
//Parse the code and state from the query parameters
const code = req.query.code;
const state = req.query.state as string;
//TODO: Fetch authentication details (see Verification page)
// const res = await BitBadgesApi.exchangeSIWBBAuthorizationCode({ code, ... });
//TODO: Any application specific requirements
//Learn more in the verification steps
};Last updated