Skip to content

Commit

Permalink
docs(readme): mention Typescript support
Browse files Browse the repository at this point in the history
  • Loading branch information
ubbe-xyz authored and iaincollins committed Sep 25, 2020
1 parent e9eb6bc commit a3104a0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Expand Up @@ -50,6 +50,16 @@ 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

This library gained Typescript support recently. You can install the types in the following way:
```
$ npm i -D @types/next-auth
```
In you encounter any issue with them, please raise an issue and add the "typescript" label to it, we'll try to help you with it as soon as possible.

Alternatively you can raise a PR directly with your fixes on [**DefinitivelyTyped**](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/next-auth).

## Example

### Add API Route
Expand Down

1 comment on commit a3104a0

@vercel
Copy link

@vercel vercel bot commented on a3104a0 Sep 25, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.