00d12e854a
- Replaced `getAuthTokensFromLoginToken` with `getAccessTokensFromLoginToken` for clarity. - Introduced `getWorkspaceAgnosticTokenFromEmailVerificationToken`. - Extended mutation inputs to include `locale` and `verifyEmailNextPath`. - Added email verification check and sending to various handlers. - Updated GraphQL types and hooks to reflect these changes. Fix #13412 --------- Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> Co-authored-by: Félix Malfait <felix.malfait@gmail.com> Co-authored-by: Félix Malfait <felix@twenty.com>
22 lines
418 B
TypeScript
22 lines
418 B
TypeScript
import { gql } from '@apollo/client';
|
|
|
|
export const GET_AUTH_TOKENS_FROM_OTP = gql`
|
|
mutation getAuthTokensFromOTP(
|
|
$loginToken: String!
|
|
$otp: String!
|
|
$captchaToken: String
|
|
$origin: String!
|
|
) {
|
|
getAuthTokensFromOTP(
|
|
loginToken: $loginToken
|
|
otp: $otp
|
|
captchaToken: $captchaToken
|
|
origin: $origin
|
|
) {
|
|
tokens {
|
|
...AuthTokenPairFragment
|
|
}
|
|
}
|
|
}
|
|
`;
|