diff --git a/application/api/auth/restore.js b/application/api/auth/restore.js index cf1fe759..abe0c691 100644 --- a/application/api/auth/restore.js +++ b/application/api/auth/restore.js @@ -4,6 +4,8 @@ const restored = context.client.restoreSession(token); if (restored) return { status: 'logged' }; const data = await api.auth.provider.readSession(token); - return { status: data ? 'logged' : 'not logged' }; + if (!data) return { status: 'not logged' }; + context.client.startSession(token, data); + return { status: 'logged' }; }, });