diff --git a/src/context/session.tsx b/src/context/session.tsx
index f1c3ecc1..e6086097 100644
--- a/src/context/session.tsx
+++ b/src/context/session.tsx
@@ -122,7 +122,13 @@ export const SessionProvider = (props: {
m: 'auth',
access_token,
})
- else if (token) changeSearchParams({ mode: 'change-password', modal: 'auth', token })
+ else if (token) {
+ changeSearchParams({
+ mode: 'change-password',
+ m: 'auth',
+ token,
+ })
+ }
})
// load
@@ -207,7 +213,6 @@ export const SessionProvider = (props: {
if (session()) {
const token = session()?.access_token
if (token) {
- // console.log('[context.session] token observer got token', token)
if (!inboxClient.private) {
apiClient.connect(token)
notifierClient.connect(token)
@@ -333,7 +338,6 @@ export const SessionProvider = (props: {
const response = await authorizer().graphqlQuery({
query: `query { is_registered(email: "${email}") { message }}`,
})
- // console.log(response)
return response?.data?.is_registered?.message
} catch (error) {
console.warn(error)
diff --git a/src/pages/types.ts b/src/pages/types.ts
index 05fd3f61..96701c6c 100644
--- a/src/pages/types.ts
+++ b/src/pages/types.ts
@@ -25,6 +25,7 @@ export type PageProps = {
export type RootSearchParams = {
m: string // modal
lang: string
+ token: string
}
export type LayoutType = 'article' | 'audio' | 'video' | 'image' | 'literature'