Skip to content

Commit a5f9e38

Browse files
Merge pull request #533 from ManuelRauber/patch-2
Corrects how localStorage could be used
2 parents bc350d1 + 10185ed commit a5f9e38

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

projects/lib/src/oauth-service.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,9 @@ export class OAuthService extends AuthConfig {
355355
/**
356356
* DEPRECATED. Use a provider for OAuthStorage instead:
357357
*
358-
* { provide: OAuthStorage, useValue: localStorage }
358+
*
359+
* { provide: OAuthStorage, useFactory: oAuthStorageFactory }
360+
* export function oAuthStorageFactory(): OAuthStorage { return localStorage; }
359361
*
360362
* Sets a custom storage used to store the received
361363
* tokens on client side. By default, the browser's

0 commit comments

Comments
 (0)