Skip to content

Commit

Permalink
chore: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cipchk committed Aug 2, 2023
1 parent 10a8c32 commit e8e0a13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/auth/src/store/cookie-storage.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class CookieStorageStore implements IStore {

set(key: string, value: ITokenModel | null | undefined): boolean {
const expires = (value?.expired ?? 0) / 1e3;
this.srv.put(key, value != null ? JSON.stringify(value) : '{}', { expires });
this.srv.put(key, JSON.stringify(value ?? {}), { expires });
return true;
}

Expand Down

0 comments on commit e8e0a13

Please sign in to comment.