Skip to content

Commit

Permalink
docs: update info about TypeScript [skip release]
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsorban44 committed Jan 19, 2021
1 parent 47bcd1e commit 4f93e6a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,15 @@ NextAuth.js can be used with or without a database.

Advanced options allow you to define your own routines to handle controlling what accounts are allowed to sign in, for encoding and decoding JSON Web Tokens and to set custom cookie security policies and session properties, so you can control who is able to sign in and how often sessions have to be re-validated.

### Typescript
### TypeScript

You can install the appropriate types via the following command:

```
npm install --save-dev @types/next-auth
```

If you encounter any problems with the types package, please create an issue and add the `typescript` label to it.

Alternatively, you can open a pull request directly with your fixes on the [DefinitelyTyped](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/next-auth) repository, where you'll find a `next-auth` subfolder.
As of now, TypeScript is a community effort. If you encounter any problems with the types package, please create an issue at [DefinitelyTyped](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/next-auth). Alternatively, you can open a pull request directly with your fixes there. We welcome anyone to start a discussion on migrating this package to TypeScript, or how to improve the TypeScript experience in general.

## Example

Expand Down Expand Up @@ -155,4 +153,4 @@ We're open to all community contributions! If you'd like to contribute in any wa

## License

ISC
ISC

0 comments on commit 4f93e6a

Please sign in to comment.