Skip to content

Commit

Permalink
fix(auth): user logged out on app kill
Browse files Browse the repository at this point in the history
  • Loading branch information
mstrk committed Nov 23, 2020
1 parent 190f774 commit 2d89f55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/auth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const auth: StoreonModule<State, Events> = (store) => {
let user: User | undefined

try {
gUser = await GoogleSignin.getCurrentUser()
gUser = await GoogleSignin.signInSilently()

if (gUser) {
user = await request(`${API_URL}/auth/user`, {
Expand Down

0 comments on commit 2d89f55

Please sign in to comment.