Skip to content

Commit d7859d4

Browse files
docs: indentation for auth usage in next-auth (#13066)
Fixed indentation in right pane Co-authored-by: Thang Vu <[email protected]>
1 parent e16b07b commit d7859d4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/next-auth/src/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export interface NextAuthResult {
138138
* A universal method to interact with NextAuth.js in your Next.js app.
139139
* After initializing NextAuth.js in `auth.ts`, use this method in Middleware, Server Components, Route Handlers (`app/`), and Edge or Node.js API Routes (`pages/`).
140140
*
141-
* #### In Middleware
141+
* ##### In Middleware
142142
*
143143
* :::info
144144
* Adding `auth` to your Middleware is optional, but recommended to keep the user session alive.
@@ -167,7 +167,7 @@ export interface NextAuthResult {
167167
* }
168168
* ```
169169
*
170-
* #### In Server Components
170+
* ##### In Server Components
171171
*
172172
* @example
173173
* ```ts title="app/page.ts"
@@ -179,7 +179,7 @@ export interface NextAuthResult {
179179
* }
180180
* ```
181181
*
182-
* #### In Route Handlers
182+
* ##### In Route Handlers
183183
* @example
184184
* ```ts title="app/api/route.ts"
185185
* import { auth } from "../../auth"
@@ -189,7 +189,7 @@ export interface NextAuthResult {
189189
* })
190190
* ```
191191
*
192-
* #### In Edge API Routes
192+
* ##### In Edge API Routes
193193
*
194194
* @example
195195
* ```ts title="pages/api/protected.ts"
@@ -202,7 +202,7 @@ export interface NextAuthResult {
202202
* export const config = { runtime: "edge" }
203203
* ```
204204
*
205-
* #### In API Routes
205+
* ##### In API Routes
206206
*
207207
* @example
208208
* ```ts title="pages/api/protected.ts"
@@ -219,7 +219,7 @@ export interface NextAuthResult {
219219
* }
220220
* ```
221221
*
222-
* #### In `getServerSideProps`
222+
* ##### In `getServerSideProps`
223223
*
224224
* @example
225225
* ```ts title="pages/protected-ssr.ts"

0 commit comments

Comments
 (0)