Merge branch 'main' of github.com:interchain-name/icns-frontend

This commit is contained in:
HeesungB 2022-12-12 15:51:41 +09:00
commit 9db9a0478b
2 changed files with 4 additions and 1 deletions

View File

@ -12,7 +12,8 @@ TWITTER_AUTH_CALLBACK_URI=...
IRON_PASSWORD=...
ICNS_VERIFIER_URI=...
# must be separated by commas
ICNS_VERIFIER_ORIGIN_LIST=http:localhost:8080,http://localhost:8081
```
Run the development server:

View File

@ -23,6 +23,8 @@ export default withIronSessionApiRoute(async function handler(
}
try {
req.session.destroy();
const codeVerifier = base64URLEncode(crypto.randomBytes(32));
req.session.code_verifier = codeVerifier;
await req.session.save();