Skip to content

Commit

Permalink
enhancement(ConfirmEmail): move to GraphQL V2
Browse files Browse the repository at this point in the history
  • Loading branch information
Betree committed Jul 15, 2024
1 parent da6950f commit 100c31e
Show file tree
Hide file tree
Showing 6 changed files with 120 additions and 50 deletions.
6 changes: 3 additions & 3 deletions components/UserProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ export const UserContext = React.createContext({
loadingLoggedInUser: true,
errorLoggedInUser: null,
LoggedInUser: null,
logout() {},
login() {},
refetchLoggedInUser() {},
logout: async () => null,
login: async () => null,
async refetchLoggedInUser() {},
});

class UserProvider extends React.Component {
Expand Down
22 changes: 22 additions & 0 deletions lib/graphql/schemaV2.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -17925,6 +17925,16 @@ type Mutation {
currentPassword: String
): SetPasswordResponse!

"""
Confirm email for Individual. Scope: "account".
"""
confirmEmail(
"""
The token to confirm the email.
"""
token: String!
): IndividualConfirmEmailResponse!

"""
Submit a legal document
"""
Expand Down Expand Up @@ -20025,6 +20035,18 @@ type SetPasswordResponse {
token: String
}

type IndividualConfirmEmailResponse {
"""
The account that was confirmed
"""
individual: Individual!

"""
A new session token to use for the account. Only returned if user is signed in already.
"""
sessionToken: String
}

"""
The `Upload` scalar type represents a file upload.
"""
Expand Down
Loading

0 comments on commit 100c31e

Please sign in to comment.