Skip to content

Commit

Permalink
prettier removed some comments from the markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjmcgrath committed Jan 29, 2021
1 parent e4450f5 commit 24f4cdb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -85,6 +85,7 @@ This will create the following urls: `/api/auth/login`, `/api/auth/callback`, `/
Wrap your `pages/_app.js` component in the `UserProvider` component.

```jsx
// pages/_app.js
import React from 'react';
import { UserProvider } from '@auth0/nextjs-auth0';

Expand All @@ -100,6 +101,7 @@ export default function App({ Component, pageProps }) {
Check whether a user is authenticated by checking that `user` has a value, and log them in or out from the front end by redirecting to the appropriate automatically-generated route.

```jsx
// pages/index.js
import { useUser } from '@auth0/nextjs-auth0';

export default () => {
Expand Down
10 changes: 10 additions & 0 deletions V1_MIGRATION_GUIDE.md
Expand Up @@ -87,6 +87,7 @@ See the API docs for a [full list of configuration options](https://auth0.github
#### Before

```js
// pages/api/shows.js
import auth0 from '../../lib/auth0';

export default function shows(req, res) {
Expand All @@ -98,6 +99,7 @@ export default function shows(req, res) {
#### After

```js
// pages/api/shows.js
import auth0 from '../../lib/auth0';

export default function shows(req, res) {
Expand All @@ -115,6 +117,7 @@ See the [getSession docs](https://auth0.github.io/nextjs-auth0/modules/session_g
### Before

```js
// pages/api/shows.js
import auth0 from '../../lib/auth0';

export default async function shows(req, res) {
Expand All @@ -129,6 +132,7 @@ export default async function shows(req, res) {
### After

```js
// pages/api/shows.js
import auth0 from '../../lib/auth0';

export default async function shows(req, res) {
Expand All @@ -151,6 +155,7 @@ The options passed to `handleLogin` have changed.
#### Before

```js
// pages/api/login.js
import auth0 from '../../utils/auth0';

export default async function login(req, res) {
Expand All @@ -174,6 +179,7 @@ export default async function login(req, res) {
#### After

```js
// pages/api/login.js
import auth0 from '../../utils/auth0';

export default async function login(req, res) {
Expand Down Expand Up @@ -205,6 +211,7 @@ The options passed to `handleLogout` have changed.
#### Before

```js
// pages/api/logout.js
import auth0 from '../../utils/auth0';

export default async function logout(req, res) {
Expand All @@ -222,6 +229,7 @@ export default async function logout(req, res) {
#### After

```js
// pages/api/logout.js
import auth0 from '../../utils/auth0';

export default async function logout(req, res) {
Expand All @@ -247,6 +255,7 @@ The options passed to `handleCallback` have changed.
#### Before

```js
// pages/api/callback.js
import auth0 from '../../utils/auth0';

export default async function callback(req, res) {
Expand All @@ -266,6 +275,7 @@ export default async function callback(req, res) {
#### After

```js
// pages/api/callback.js
import auth0 from '../../utils/auth0';

export default async function callback(req, res) {
Expand Down

0 comments on commit 24f4cdb

Please sign in to comment.