Skip to content

Commit

Permalink
fix graphql resend email
Browse files Browse the repository at this point in the history
  • Loading branch information
imhson committed Aug 25, 2023
1 parent bab82af commit b1a7834
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
14 changes: 7 additions & 7 deletions public/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"REDIRECT_URL": "http://localhost:3080",
"REDIRECT_URL": "http://localhost:3000",
"CHAIN_ID": "euphoria-2",
"CHAIN_INFO": {
"chainId": "euphoria-2",
Expand Down Expand Up @@ -48,11 +48,11 @@
"logo": "https://i.imgur.com/zi0mTYb.png",
"explorer": "https://euphoria.aurascan.io/"
},
"API_URL": "https://hasura.dev.punkga.me",
"AUTHORIZER_URL": "https://auth.dev.punkga.me",
"AUTHORIZER_CLIENT_ID": "abd40c73-3390-4613-bc44-b5bde4796d03",
"ADMIN_URL": "https://admin.dev.punkga.me",
"REST_API_URL": "https://api.dev.punkga.me",
"API_URL": "https://hasura.staging.punkga.me",
"AUTHORIZER_URL": "https://auth.staging.punkga.me",
"AUTHORIZER_CLIENT_ID": "06c9c437-15cd-4240-b435-5d16206b46c6",
"ADMIN_URL": "https://admin.staging.punkga.me",
"REST_API_URL": "https://api.staging.punkga.me",
"IN_MAINTENANCE_MODE": false,
"GTM_ID": "GTM-PF4MH72V"
"GTM_ID": "GTM-MMT4K22K"
}
5 changes: 3 additions & 2 deletions src/context/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -295,13 +295,14 @@ function ContextProvider({ children }) {
async function resendVerifyEmail(email: string, identifier?: string) {
try {
await authorizerRef.graphqlQuery({
query: `mutation ResendVerifyEmail($email: String!) {
resend_verify_email(params: {identifier: ${identifier || 'basic_auth_signup'}, email: $email}) {
query: `mutation ResendVerifyEmail($identifier: String!, $email: String!) {
resend_verify_email(params: {identifier: $identifier, email: $email}) {
message
}
}`,
variables: {
email,
identifier,
},
})
} catch (error) {
Expand Down

0 comments on commit b1a7834

Please sign in to comment.