Skip to content

Commit

Permalink
doc: correct the example
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenix-ru committed Feb 7, 2025
1 parent 5964007 commit 2c9112b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/runtime/server/services/authjs/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@ import { ERROR_MESSAGES } from '../errors'
*
* @example
* ```
* // configured baseURL = https://your.domain/api/auth
*
* // Without `trustHost`
* // event path = https://example.com/auth/path/signin/github?callbackUrl=foo
* // configured baseURL = https://your.domain/api/auth
* getHostValueForAuthjs(event, runtimeConfig, false) === 'https://your.domain/api/auth'
*
* // With `trustHost`
* // event path = https://example.com/auth/path/signin/github?callbackUrl=foo
* getHostValueForAuthjs(event, runtimeConfig, true) === 'https://example.com/auth/path'
* getHostValueForAuthjs(event, runtimeConfig, true) === 'https://example.com/api/auth'
* ```
*
* @param event The H3 Event containing the request
Expand Down

0 comments on commit 2c9112b

Please sign in to comment.