Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript: getProviders example for custom signin page throwing errors #6704

Closed
wsfuller opened this issue Feb 12, 2023 · 1 comment
Closed
Assignees
Labels
question Ask how to do something or how something works TypeScript Issues relating to TypeScript

Comments

@wsfuller
Copy link

Question 馃挰

OAuth Sign in Typescript example throws the following errors:

Screenshot 2023-02-12 at 10 41 17 AM

Screenshot 2023-02-12 at 10 43 14 AM

Page is set in the correct directory, code is directly copied from example

How to reproduce 鈽曪笍

Simply use the OAuth Sign in example

Contributing 馃檶馃徑

Yes, I am willing to help answer this question in a PR

@wsfuller wsfuller added question Ask how to do something or how something works TypeScript Issues relating to TypeScript labels Feb 12, 2023
wsfuller added a commit to wsfuller/next-auth that referenced this issue Feb 13, 2023
According to the function declaration for [getProviders()](https://github.com/nextauthjs/next-auth/blob/v4/packages/next-auth/src/react/index.tsx#L187) it doesn't accept any parameters. Therefore have removed passing of an argument in the doc example.

Using the documentation as is will result in multiple type errors as [referenced in an issue I've posted about](nextauthjs#6704)
balazsorban44 pushed a commit that referenced this issue Feb 13, 2023
According to the function declaration for [getProviders()](https://github.com/nextauthjs/next-auth/blob/v4/packages/next-auth/src/react/index.tsx#L187) it doesn't accept any parameters. Therefore have removed passing of an argument in the doc example.

Using the documentation as is will result in multiple type errors as [referenced in an issue I've posted about](#6704)
@balazsorban44
Copy link
Member

Thanks! Merged your PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Ask how to do something or how something works TypeScript Issues relating to TypeScript
Projects
None yet
Development

No branches or pull requests

3 participants