daniel-de-wit / lighthouse-sanctum

Laravel Sanctum support for Laravel Lighthouse
MIT License
56 stars 9 forks source link

VerificationUrlInput wrong in README #70

Closed wimski closed 2 years ago

wimski commented 2 years ago

The following example in the register section of the readme has incorrectly named hash parameters. It says token instead of hash.

mutation {
    register(input: {
        name: "John Doe"
        email: "john.doe@gmail.com"
        password: "secret"
        password_confirmation: "secret"
        verification_url: {
            url: "https://my-front-end.com/verify-email?id=__ID__&token=__HASH__"
# Signed:   url: "https://my-front-end.com/verify-email?id=__ID__&token=__HASH__&expires=__EXPIRES__&signature=__SIGNATURE__"
        }
    }) {
        token
        status
    }
}
daniel-de-wit commented 2 years ago

That's part of the custom URL provided by the person calling the register mutation.

The important part is the __HASH__ right?

wimski commented 2 years ago

Ah yes, you're right.