Skip to content
No description, website, or topics provided.
JavaScript OCaml HTML CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
public
src
.env
.gitignore
README.md
bsconfig.json
package.json
screenshot.png
yarn.lock

README.md

Figuring out Reason and ahrefs/bs-dotenv

The Error

running: node ./lib/js/src/Demo.js | grep auth0 returns

AUTH0_DOMAIN: 'tenant.eu.auth0test.com',
  AUTH0_CLIENTID: 'DrandomstringxHauth0test' }
domain tenant.eu.auth0test.com
clientID DrandomstringxHauth0test
From Demo.re { domain: 'tenant.eu.auth0test.com',
  clientID: 'DrandomstringxHauth0test',

Accessing that same code from src/app.re returns undefined for everything: screenshot

ENV
Object {  }
bundle.js:44303:1
domain undefined
bundle.js:44307:1
clientID undefined
bundle.js:44311:1
From Demo.re
{…}
​
clientID: undefined
​
domain: undefined
​
redirectUri: "http://localhost:3000/callback"
​
responseType: "token id_token"
​
scope: "openid"
​
__proto__: Object { … }
bundle.js:44321:1
Auth from App.re:  
{…}
​
clientID: undefined
​
domain: undefined
​
redirectUri: "http://localhost:3000/callback"
​
responseType: "token id_token"
​
scope: "openid"
​
__proto__: Object { … }

Ideas? Anyone?

You can’t perform that action at this time.