Skip to content

Commit

Permalink
google login -- error [clni503px000eyr0kizrhem11]
Browse files Browse the repository at this point in the history
  • Loading branch information
pauloendoh committed Nov 11, 2024
1 parent a76b4b1 commit e05e98a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
16 changes: 11 additions & 5 deletions src/domains/auth/AuthService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,13 +220,19 @@ export class AuthService {
expiresAt: addMinutes(new Date(), 15).toISOString(),
})

return (
const encoded = encodeURI(
process.env.CLIENT_BASE_URL +
"?oauthToken=" +
oauthToken.token +
"&userId=" +
oauthToken.userId
"?oauthToken=" +
oauthToken.token +
"&userId=" +
oauthToken.userId
)

console.log({
encoded,
})

return encoded
}

async loginWithUserIdAndGoogleToken(body: UserTokenPostDto) {
Expand Down
4 changes: 2 additions & 2 deletions src/domains/lolrates/lolRates/LolRatesController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { LolRatesService } from "./LolRatesService"
@JsonController()
export class LolRatesController {
constructor(
private lolRateRepo = LolRateRepository,
private lolratesService = new LolRatesService()
private readonly lolRateRepo = LolRateRepository,
private readonly lolratesService = new LolRatesService()
) {}

@Get("/lolRates")
Expand Down

0 comments on commit e05e98a

Please sign in to comment.