graphcool-templates icon indicating copy to clipboard operation
graphcool-templates copied to clipboard

SMS Auth

Open amejia49 opened this issue 7 years ago • 1 comments

Currently following the steps for sms auth

When I get to the following step it fails

Create a new Schema Extension Function called confirmUserSmsToken and paste the schema from confirm-code-schema-extension.graphql and code from sms-authentication.js.

This is the error that pops up

Function with name 'confirmUserSmsToken' has invalid payloadName: 'AuthenticateSmsUserPayload'

amejia49 avatar Oct 05 '17 19:10 amejia49

I changed it to this

type ConfirmSmsUserPayload {
  token: String!
}

extend type Mutation {
  confirmUserSmsToken(userId: ID!, confirmCode: String!):ConfirmSmsUserPayload
}

khocef avatar Mar 16 '18 18:03 khocef