diff --git a/src/auth/index.tsx b/src/auth/index.tsx index f86df2d..b62bd1c 100644 --- a/src/auth/index.tsx +++ b/src/auth/index.tsx @@ -21,15 +21,12 @@ export function Login({ additionalParameters, }); - console.log(jwtDecode(oAuthResponse.idToken)); + const userId = jwtDecode<JwtPayload>(oAuthResponse.idToken).sub; Promise.all([ setStorageItem('userApiToken', oAuthResponse.idToken), setStorageItem('userRefreshToken', oAuthResponse.refreshToken), - setStorageItem( - 'userId', - jwtDecode<JwtPayload>(oAuthResponse.idToken).sub - ), + setStorageItem('userId', userId), ]); }