hapijs / hapijs/jwt

Accept token from url search query param

Open
#49 2 comments 1 reaction 0 assignees View on GitHub
feature
Dominant language
JavaScript
Stars
35
Forks
25
PR merge metrics
No merged PRs in 30d

Description

#### Support plan
Community

* *is this issue currently blocking your project?* (yes/no): yes
* *is this issue affecting a production system?* (yes/no): yes

#### Context
Some apps need the ability to parse token from url. A usecase would be to implement reset password links.

* *node version*: 16.0.0
* *module version*: 3.0.0
* *environment* (e.g. node, browser, native): node
* *used with* (e.g. hapi application, another framework, standalone, ...): hapi application
* *any other relevant information*:

#### What problem are you trying to solve?
Allow the plugin to read token from url search query param. Something like `https://api.test.com?token=sdfsdfsdfsf
` would be read and parsed

Implementing this opens up the plugin to a wide variety of usecases, like email reset password links, token based file access etc

#### Do you have a new or modified API suggestion to solve the problem?
Yes, this can be done similar to what we did with cookieName

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.