Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jwtRole must be array, clearing confusion in doc #1128

Closed
bidoubiwa opened this issue Aug 5, 2019 · 0 comments · Fixed by #1129
Closed

jwtRole must be array, clearing confusion in doc #1128

bidoubiwa opened this issue Aug 5, 2019 · 0 comments · Fixed by #1129

Comments

@bidoubiwa
Copy link
Contributor

bidoubiwa commented Aug 5, 2019

https://github.com/graphile/postgraphile/blob/4fe130b9345b366445f5e2466172a90788bf8888/src/interfaces.ts#L215-L217

necessity of array should be specified, also example to avoid confusion

// An array of (strings) path components that make the path in the jwt from which to extract the postgres role.
// By default, the role is extracted from token.role, so the default value is ['role'].
// e.g. { iat: 123456789, creds: { local: { role: "my_role" } }
// the path would be token.creds.local.role i.e. ['creds', 'local', 'role']
@bidoubiwa bidoubiwa changed the title Postgraphile as library with express : jwtRole must be array jwtRole must be array, clearing confusion in doc Aug 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant