Skip to content

Commit

Permalink
added 'npm i react-use-auth' and fixed a typo Swizec#50
Browse files Browse the repository at this point in the history
  • Loading branch information
olavea committed Feb 4, 2020
1 parent 48771b8 commit 07caca7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@

```
$ yarn add react-use-auth
or
$ npm i react-use-auth
```

Downloads from npm, adds to your package.json, etc. You can use `npm` as well.
Downloads from npm, adds to your package.json, etc.

### 2. Set up AuthProvider

Expand Down Expand Up @@ -95,10 +97,9 @@ Auth0 and most other authentication providers use OAuth. That requires redirecti
Any way of creating React pages should work, here's what I use for Gatsby.

```javascript
// src/pages/auth0_callback
// src/pages/auth0_callback.js

import React, { useEffect } from "react";

import { useAuth } from "react-use-auth";
import Layout from "../components/layout";

Expand Down

0 comments on commit 07caca7

Please sign in to comment.