Skip to content

Commit

Permalink
remove id token
Browse files Browse the repository at this point in the history
  • Loading branch information
pilcrowonpaper committed Mar 28, 2024
1 parent 5d83142 commit 43cddb4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/providers/myanimelist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ export class MyAnimeList implements OAuth2ProviderWithPKCE {
const tokens: MyAnimeListTokens = {
accessToken: result.access_token,
refreshToken: result.refresh_token,
accessTokenExpiresAt: createDate(new TimeSpan(result.expires_in, "s")),
idToken: result.id_token
accessTokenExpiresAt: createDate(new TimeSpan(result.expires_in, "s"))
};
return tokens;
}
Expand All @@ -55,8 +54,7 @@ export class MyAnimeList implements OAuth2ProviderWithPKCE {
const tokens: MyAnimeListTokens = {
accessToken: result.access_token,
refreshToken: result.refresh_token,
accessTokenExpiresAt: createDate(new TimeSpan(result.expires_in, "s")),
idToken: result.id_token
accessTokenExpiresAt: createDate(new TimeSpan(result.expires_in, "s"))
};
return tokens;
}
Expand All @@ -66,12 +64,10 @@ interface TokenResponseBody {
access_token: string;
refresh_token: string;
expires_in: number;
id_token: string;
}

export interface MyAnimeListTokens {
accessToken: string;
refreshToken: string;
accessTokenExpiresAt: Date;
idToken: string;
}

0 comments on commit 43cddb4

Please sign in to comment.