Forms app
Authentification on development environment
On development environment, you are not going to perform a normal authentification flow. You are going to be automatically logged according to some environment variables.
For that, simply fill the authentification variables in the .env file with your credentials. Warning: you cannot use an account with mfa enabled.
There is also a note .env variables for Auth on dev environment
on 1password with all the right values for AUTH0 environment variables.
How to get your user Id (UUID)?
Simply don't fill the field yet, run the app. Get the value of the cookie UB_ACCESS_TOKEN_development, and put it on https://jwt.io/. You should see the UUID in value of the property: https://usabilla.com/userId
If it's not working
- try to clear all your cookies and restart the app
- be sure to have filled the userId with the right value
- check again the values of AUTH0 configuration on 1password
Commands
Command | Description |
---|---|
yarn build |
Build the app |
yarn start |
Start development server |
Configuration
Configuration for the app is defined in .env.js
. The example is copied during installation and has the development environment defaults set.
Variable | Description |
---|---|
ENV |
The environment that the app is running. |
RELEASE |
The current release of the app. For development we use 0.0.0-development , for staging we use the output of git describe , and for production this will be the latest tag. |
SENTRY_* |
Sentry configuration |
AUTH0_* |
Auth0 (Auth) configuration |