Skip to content

Broken code in oauth getting started #6192

@TudorZgimbau

Description

@TudorZgimbau

What is the improvement or update you wish to see?

I've seen two problems: first, in the server config section, GITHUB_ID and GITHUB_SECRET are referenced(and missing from the code) .

Also, in the hook example
const userEmail = session.user.email would cause an error if session is undefined.

Edit: the namings were correct.

Is there any context that might help us understand?

No.

Does the docs page already exist? Please link to it.

https://authjs.dev/getting-started/oauth-tutorial

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsRelates to documentationtriageUnseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions