Skip to content

Commit

Permalink
fix(ng-auth): fix ngx-auth signature to accept refresh token
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-morandi-zupit committed Oct 9, 2023
1 parent b8ad9a2 commit bfab688
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/ng-auth/src/lib/services/ngx-auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,13 @@ export class NgxAuthService implements OnDestroy {
* Login by having a token, most likely from a OAuth2 provider,
* that does not require the user to login with standard credentials
* @param token: The authentication token
* @param refreshTOken: The refresh token if any
*/
public tokenLogin(token: string): Observable<UserType> {
return this.libAuthService.tokenLogin(token)
public tokenLogin(
token: string,
refreshToken?: string
): Observable<UserType> {
return this.libAuthService.tokenLogin(token, refreshToken)
}

/**
Expand Down

0 comments on commit bfab688

Please sign in to comment.