[feat] Remove unuse code

This commit is contained in:
JasonWu committed 2021-09-01 15:30:09 +08:00
1 parent 9174b540fd
commit c96cdf0ebd
13 files changed
+1 -384

No files matched your search

-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');