Setup Development Environment
Auth Server Setup
Clone didPass repository then checkout to
development
branch
git clone https://github.com/GDP-ADMIN/didPass.git
Copy auth-server
.env.example
as.env
and Set Environment Variables in.env
Set Environment Variables
Setup Auth0
Create new Application, select Native
Auth0 Create New Application Select React Native as the
Native SDK
Go to your application (from step 1 & 2) settings on Auth0 site
Copy
Domain
toAPP_ISSUER
value andJWKS_URL
valueAPP_ISSUER=https://<placeholder(Auth0 Application Domain)>/ JWKS_URL=https://<placeholder(Auth0 Application Domain)>/.well-known/jwks.json
Copy
Client ID
toAPP_AUDIENCE
valueAPP_AUDIENCE=<placeholder(Auth0 Application Client ID)>
Setup Pinata
Create new API KEY, check the
Admin
option and set theKey Name
(any name)Pinata Create New Key Click
Create Key
ButtonCopy the
API Key
on pinata's site toPINATA_API_KEY
PINATA_API_KEY=<placeholder(Pinata API key)>
Copy the
API Secret
on pinata's site toPINATA_SECRET_API_KEY
PINATA_SECRET_API_KEY=<placeholder(Pinata Secret API key)>
Run ngrok
ngrok http 3000
, copy forwarding url and fillNEXT_PUBLIC_URL
value.
NEXT_PUBLIC_URL=<placeholder(ngrok Forwarding URL)>
Here is the full .env
APP_ISSUER=https://<placeholder(Auth0 Application Domain)>/ #(example: https://tenant.region.auth0.com/)
APP_AUDIENCE=<placeholder(Auth0 Application Client ID)> #Client ID of your Auth0 application
JWKS_URL=https://<placeholder(Auth0 Application Domain)>/.well-known/jwks.json #{APP_ISSUER}/.well-known/jwks.json
PINATA_API_KEY=<placeholder(Pinata API key)>
PINATA_SECRET_API_KEY=<placeholder(Pinata Secret API key)>
NEXT_PUBLIC_URL=<placeholder(ngrok Forwarding URL)>
KEY_ID=v1
Last updated