diff --git a/frontend/schema.graphql b/frontend/schema.graphql index 0a190feb..1e1fefe6 100644 --- a/frontend/schema.graphql +++ b/frontend/schema.graphql @@ -1165,7 +1165,7 @@ union Viewer = User | Anonymous """ Represents the current viewer's session """ -union ViewerSession = BrowserSession | Anonymous +union ViewerSession = BrowserSession | Oauth2Session | Anonymous schema { query: Query diff --git a/frontend/src/gql/graphql.ts b/frontend/src/gql/graphql.ts index 281d9b0c..4cb414e0 100644 --- a/frontend/src/gql/graphql.ts +++ b/frontend/src/gql/graphql.ts @@ -873,7 +873,7 @@ export enum VerifyEmailStatus { export type Viewer = Anonymous | User; /** Represents the current viewer's session */ -export type ViewerSession = Anonymous | BrowserSession; +export type ViewerSession = Anonymous | BrowserSession | Oauth2Session; export type CurrentViewerQueryQueryVariables = Exact<{ [key: string]: never }>; @@ -892,7 +892,8 @@ export type CurrentViewerSessionQueryQuery = { __typename?: "Query"; viewerSession: | { __typename: "Anonymous"; id: string } - | { __typename: "BrowserSession"; id: string }; + | { __typename: "BrowserSession"; id: string } + | { __typename: "Oauth2Session" }; }; export type AddEmailMutationVariables = Exact<{ diff --git a/frontend/src/gql/schema.ts b/frontend/src/gql/schema.ts index 20b28be8..87e97f66 100644 --- a/frontend/src/gql/schema.ts +++ b/frontend/src/gql/schema.ts @@ -2601,6 +2601,10 @@ export default { kind: "OBJECT", name: "BrowserSession", }, + { + kind: "OBJECT", + name: "Oauth2Session", + }, ], }, {