Skip to content

edwinanciani/formio-custom-jwt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Formio Custom JWT Token Example

Documentation

Custom JWT token is an authentication method for any Deployed Formio Environment. Refer to documentation: Here

Use

Install

npm install or yarn install

Rename .env.example to .env and replace the value from the environment variables with your project information

Run

node index.js

This command will generate a JWT token that you can use in a API request or set the token in your localstorage using formiojs in your browser. Having the "formioToken" in your localstorage will add a x-jwt-token header in all your formio requests.

Formio.setToken(token)

About

Form.io Custom JWT Token Generator.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published