Skip to content

Commit 37aea4e

Browse files
Merge pull request #2071 from maechler/feature/update-custom-storage-docs
docs: update example for custom-storage service to align with AbstractSecurityStorage interface
2 parents a8db835 + 452f176 commit 37aea4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/site/angular-auth-oidc-client/docs/documentation/custom-storage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ import { AbstractSecurityStorage } from 'angular-auth-oidc-client';
1414

1515
@Injectable()
1616
export class MyStorageService implements AbstractSecurityStorage {
17-
read(key: string) {
17+
read(key: string): string | null {
1818
return localStorage.getItem(key);
1919
}
2020

21-
write(key: string, value: any): void {
21+
write(key: string, value: string): void {
2222
localStorage.setItem(key, value);
2323
}
2424

0 commit comments

Comments
 (0)