-
Notifications
You must be signed in to change notification settings - Fork 927
Add a persistence manager class #2925
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
packages-exp/auth-exp/src/core/persistence/persistence_user_manager.ts
Outdated
Show resolved
Hide resolved
packages-exp/auth-exp/src/core/persistence/persistence_user_manager.ts
Outdated
Show resolved
Hide resolved
packages-exp/auth-exp/src/core/persistence/persistence_user_manager.test.ts
Show resolved
Hide resolved
packages-exp/auth-exp/src/core/persistence/persistence_user_manager.test.ts
Outdated
Show resolved
Hide resolved
export const AUTH_USER_KEY_NAME_ = 'authUser'; | ||
export const PERSISTENCE_KEY_NAME_ = 'persistence'; | ||
const PERSISTENCE_NAMESPACE_ = 'firebase'; | ||
|
||
export function persistenceKeyName_( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we have an official rule on prefix _ vs suffix _ for internal functions/constants yet, but I'd like to establish the convention of using prefix _. @firebase/firestore
and @firebase/app
are already using prefix _ today and the documentation tool we are going to use will flag functions with @internal
annotation without prefix _.
WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sg, done
export const _PERSISTENCE_KEY_NAME = 'persistence'; | ||
const _PERSISTENCE_NAMESPACE = 'firebase'; | ||
|
||
export function persistenceKeyName_( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: change to prefix _
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
woops done
No description provided.