Skip to content

Commit

Permalink
docs: custom cookieName with options in ProviderLocal,ProviderRefresh
Browse files Browse the repository at this point in the history
  • Loading branch information
FAL-coffee authored and phoenix-ru committed Feb 22, 2024
1 parent d0cfcd3 commit 062ceb2
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions docs/content/2.configuration/2.nuxt-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,13 @@ type ProviderLocal = {
* @example Beer
*/
type?: string,
/**
* It refers to the name of the property when it is stored in a cookie.
*
* @default auth:token
* @example auth.token
*/
cookieName?: string,
/**
* Header name to be used in requests that need to be authenticated, e.g., to be used in the `getSession` request.
*
Expand Down Expand Up @@ -323,6 +330,13 @@ type ProviderRefresh = {
* @example Beer
*/
type?: string,
/**
* It refers to the name of the property when it is stored in a cookie.
*
* @default auth:token
* @example auth.token
*/
cookieName?: string,
/**
* Header name to be used in requests that need to be authenticated, e.g., to be used in the `getSession` request.
*
Expand Down Expand Up @@ -365,6 +379,13 @@ type ProviderRefresh = {
* @example / Access the root of the sign-in response object, useful when your endpoint returns a plain, non-object string as the refreshToken
*/
signInResponseRefreshTokenPointer?: string
/**
* It refers to the name of the property when it is stored in a cookie.
*
* @default auth:token
* @example auth.token
*/
cookieName?: string,
/**
* Maximum age to store the authentication token for. After the expiry time the token is automatically deleted on the application side, i.e., in the users' browser.
*
Expand Down

0 comments on commit 062ceb2

Please sign in to comment.