[feat] Remove unuse code

This commit is contained in:
JasonWu
2021-09-01 15:30:09 +08:00
parent 9174b540fd
commit c96cdf0ebd
13 changed files with 1 additions and 384 deletions
-2
View File
@@ -117,8 +117,6 @@ mod.getToken = async (code, state) => {
const decoded = jwt.decode(idToken);
if (!decoded || typeof decoded !== 'object') throw new Error('jwt decode fail');
console.log('decoded ::: ', decoded)
console.log('body ::: ', body)
// @ts-ignore
const { preferred_username: preferredUsername } = decoded;
if (!preferredUsername) throw new Error('id token field missing');