Skip to content

Commit

Permalink
Fix redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
fewensa committed Jan 18, 2022
1 parent 1c739df commit 0e4e24b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions airdrop/api/authorization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ export default async function (req: VercelRequest, res: VercelResponse) {
const auth = qs.parse(req.query);
const accessToken = auth.access_token;
res.setHeader('Set-Cookie', `x-access-token=${accessToken};httpOnly;secure;path=/;`);
res.setHeader('Location', '/');
res.end('Redirect /');
res.setHeader('Location', '/builders/get-started/darwinia-crab');
res.end('Redirect /builders/get-started/darwinia-crab');
}

0 comments on commit 0e4e24b

Please sign in to comment.