Skip to content

Commit

Permalink
Merge pull request #2071 from maechler/feature/update-custom-storage-…
Browse files Browse the repository at this point in the history
…docs

docs: update example for custom-storage service to align with AbstractSecurityStorage interface
  • Loading branch information
FabianGosebrink authored Jan 24, 2025
2 parents a8db835 + 452f176 commit 37aea4e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ import { AbstractSecurityStorage } from 'angular-auth-oidc-client';

@Injectable()
export class MyStorageService implements AbstractSecurityStorage {
read(key: string) {
read(key: string): string | null {
return localStorage.getItem(key);
}

write(key: string, value: any): void {
write(key: string, value: string): void {
localStorage.setItem(key, value);
}

Expand Down

0 comments on commit 37aea4e

Please sign in to comment.