Skip to content

Commit 3b13ef9

Browse files
maxisamjeroenheijmans
authored andcommitted
fix: use initLoginFlow for code flow
#32
1 parent 1fd4617 commit 3b13ef9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/core/auth.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ export class AuthService {
178178
public login(targetUrl?: string) {
179179
// Note: before version 9.1.0 of the library you needed to
180180
// call encodeURIComponent on the argument to the method.
181-
this.oauthService.initImplicitFlow(targetUrl || this.router.url);
181+
this.oauthService.initLoginFlow(targetUrl || this.router.url);
182182
}
183183

184184
public logout() { this.oauthService.logOut(); }

0 commit comments

Comments
 (0)