-
Notifications
You must be signed in to change notification settings - Fork 8
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
[178] - feat: google drive integration with a sign-in flow and backup upload #202
[178] - feat: google drive integration with a sign-in flow and backup upload #202
Conversation
Signed-off-by: Piyush Upadhyay <[email protected]>
Signed-off-by: Piyush Upadhyay <[email protected]>
Signed-off-by: Piyush Upadhyay <[email protected]>
Signed-off-by: Piyush Upadhyay <[email protected]>
…into feature/digilocker-integration
@piyushupadhyay19 Can you add the video of the feature you have completed ? |
Screenrecording_20240627_232035.mp4 |
…into feature/digilocker-integration Signed-off-by: Piyush Upadhyay <[email protected]>
app/contexts/auth.tsx
Outdated
isSignedIn: boolean | ||
signIn: () => Promise<void> | ||
signOut: () => Promise<void> |
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.
isSignedIn: boolean | |
signIn: () => Promise<void> | |
signOut: () => Promise<void> | |
isGoogleAccountSignedIn: boolean | |
googleSignIn: () => Promise<void> | |
googleSignOut: () => Promise<void> |
app/contexts/auth.tsx
Outdated
// const userInfo = await GoogleSignin.signIn() | ||
// await AsyncStorage.setItem('userInfo', JSON.stringify(userInfo)) |
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.
- If we don't need this you can remove this
app/screens/Settings.tsx
Outdated
Toast.show({ | ||
type: ToastType.Success, | ||
text1: t('GoogleDrive.SignOutGoogleSuccess'), | ||
position: 'bottom', | ||
}) |
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.
- While signing out we can remove this toast. We can just sign-out the user
app/contexts/auth.tsx
Outdated
const [, dispatch] = useStore() | ||
const { t } = useTranslation() | ||
|
||
useEffect(() => { | ||
const checkSignInStatus = async () => { | ||
const userInfo = await AsyncStorage.getItem('userInfo') |
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.
const userInfo = await AsyncStorage.getItem('userInfo') | |
const userInfo = await AsyncStorage.getItem('googleUserInfo') |
Signed-off-by: Piyush Upadhyay <[email protected]>
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.
LGTM
Summary
Issue ticket number and link
Checklist before requesting a review