Skip to content

Add react native persistence class #2955

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

Merged
merged 3 commits into from
May 4, 2020

Conversation

scottcrossen
Copy link
Contributor

No description provided.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Apr 21, 2020

Binary Size Report

Affected SDKs

No changes between base commit (9c61b0b) and head commit (286e368).

Test Logs

@scottcrossen scottcrossen force-pushed the slc/react-native-persistence branch from 59a9b58 to 51520a5 Compare April 21, 2020 17:37
@@ -23,5 +23,9 @@
*/

import { testFxn } from './src';
import { AsyncStorage } from 'react-native';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it'd be great if the storage layer were injectable, so if someone were to want to sub in something for AsyncStorage they would be able to do that provided that it conforms to the same interface. redux-persist provides a storage option used on initialization: https://github.com/rt2zz/redux-persist#v6-upgrade

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is the overall idea, but this is a polyfill and maintains the legacy behavior.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that you're big into expo contributions! Is there anything else you think would be helpful from the firebase auth SDK?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey @scottcrossen! @EvanBacon has been doing a bunch of work on authentication apis in expo recently, he may have some questions for you.

can we invite you to our slack to discuss further? if you let me know your email i'd be happy to invite you and other folks on your team so we can collaborate further.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure sounds good! Email me to get me setup [email protected]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@scottcrossen - sent!

@avolkovi avolkovi force-pushed the auth-next branch 2 times, most recently from b792887 to a484d4f Compare April 23, 2020 16:40
@scottcrossen scottcrossen force-pushed the slc/react-native-persistence branch from c7a9980 to bfbf208 Compare April 23, 2020 20:54
@scottcrossen scottcrossen force-pushed the slc/react-native-persistence branch from 079d642 to e9fbcec Compare May 4, 2020 22:14
@scottcrossen scottcrossen requested a review from alikn as a code owner May 4, 2020 22:14
@googlebot
Copy link

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@scottcrossen scottcrossen force-pushed the slc/react-native-persistence branch from e9fbcec to 598d941 Compare May 4, 2020 22:25
@googlebot
Copy link

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

@scottcrossen scottcrossen merged commit 6b951a1 into auth-next May 4, 2020
@scottcrossen scottcrossen deleted the slc/react-native-persistence branch May 4, 2020 22:37
Copy link
Member

@yuchenshi yuchenshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

sam-gc pushed a commit that referenced this pull request May 19, 2020
Added React Native persistence class
@firebase firebase locked and limited conversation to collaborators Jun 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants