graphcool-templates
graphcool-templates copied to clipboard
SMS Auth
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'
I changed it to this
type ConfirmSmsUserPayload {
token: String!
}
extend type Mutation {
confirmUserSmsToken(userId: ID!, confirmCode: String!):ConfirmSmsUserPayload
}