Skip to content

Custom refresh token name. #635

@N1K1TAS95

Description

@N1K1TAS95

Describe the feature

Hi there!
I'm using nuxt-auth and refresh mode to manage JWT.
Obtaining new access and refresh token works fine, but not refreshing a token.
Nuxt-auth sends this JSON:

{
  "refreshToken":"eyJhbGc..."
}

My back-end expects a JSON with field "refresh", so an 400 error is returned.
I wish to customize the name like so:

refreshToken: {
  signInResponseRefreshTokenPointer: '/refresh',
  maxAgeInSeconds: 86400,
  fieldName: 'refresh'
}

Thanks!

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementAn improvement that needs to be addedp4Important Issueprovider-refreshAn issue with the refresh provider

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions