Skip to content

Commit

Permalink
Update docs/tutorials/snippets/passport/DiscordProtocol.ts
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
Romakita and coderabbitai[bot] committed May 30, 2024
1 parent cde76fa commit 4d358fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorials/snippets/passport/DiscordProtocol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {AuthService} from "../services/auth/AuthService";
export class DiscordProtocol implements OnVerify, OnInstall {
constructor(private authService: AuthService) {}

async $onVerify(@Req() req: Req, @Args() [accessToken, refreshToken, profile]: any) {
async $onVerify(@Req() req: Req, @Args() [accessToken, refreshToken, profile]: [string, string, DiscordProfile]) {
profile.refreshToken = refreshToken;

const user = await this.authService.findOne({discordId: profile.id});
Expand Down

0 comments on commit 4d358fa

Please sign in to comment.