Skip to content

Commit

Permalink
Merge pull request #493 from MrZillaGold/patch1
Browse files Browse the repository at this point in the history
chore(session-manager): userId support for session key
  • Loading branch information
negezor authored Jun 8, 2022
2 parents eebfe5e + 7e37fd7 commit f8a1f8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/session/src/session-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class SessionManager<T = {}> {
this.contextKey = options.contextKey || 'session';

this.getStorageKey = options.getStorageKey || ((context): string => (
String(context.senderId)
String(context.senderId || context.userId)
));
}

Expand Down

0 comments on commit f8a1f8c

Please sign in to comment.