Skip to content
This repository has been archived by the owner on Jul 18, 2020. It is now read-only.

'authParams' with 'scope' kills the App #158

Open
giulianok opened this issue May 19, 2017 · 0 comments
Open

'authParams' with 'scope' kills the App #158

giulianok opened this issue May 19, 2017 · 0 comments

Comments

@giulianok
Copy link

giulianok commented May 19, 2017

Lock generates a token without the scopes that I need. When I pass the scopes as 'authParams' it fills the app. It only happens when I have the prop 'scope' in 'authParams'

{...}lock().show({
  closable: true, // This works
  disableSignUp: true, // This works
  authParams: {
    scope: {
      users: {
        actions: [
          "read"
        ]
      }
    }
  }
}, funct{...}

Also, I've tried passing as a string

{...}lock().show({
  authParams: {
    scope: 'read:users'
  }
}, funct{...}

The same happens if the scope is null or an empty object

{...}lock().show({
  authParams: {
    scope: {} // or scope: null
  }
}, funct{...}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant