Logo-amall

Hello, I'm trying to specify custom claims on the console but without success. It looks like the field does not accept dots `.` or brackets `[]` and I cannot add paths like `user.organizations[].id` or `user.organization.id` . I have tried with Safari and Firefox and looks that is not a browser issue. One additional note. On both path and field name the only one special character allowed is dash `-` Maybe they share same validation which should not be the case.

Last active 4 months ago

8 replies

15 views

  • L3

    Hello, I'm trying to specify custom claims on the console but without success. It looks like the field does not accept dots . or brackets [] and I cannot add paths like user.organizations[].id or user.organization.id . I have tried with Safari and Firefox and looks that is not a browser issue.

    One additional note. On both path and field name the only one special character allowed is dash - Maybe they share same validation which should not be the case.

  • EL

    https://github.com/nhost/nhost/blob/main/dashboard/src/components/applications/users/permissions/modal/CreatePermissionVariableModalBase.tsx#L142

  • EL

    Issue here πŸ‘†

  • EL

    Would you mind creating an issue (and/or PR)?

  • PI

    Yes, it is a bug. In the meantime, there's a workaround: write the right value on any editor, and copy-paste 😬

  • L3

    I tried the workaround. It is working on Chrome/Firefox but not on Safari πŸ₯²

  • EL

    https://tenor.com/view/hacker-pc-meme-matrix-codes-gif-16730883

  • L3

    https://github.com/nhost/nhost/issues/1198 I will check what I can do these days.

Last active 4 months ago

8 replies

15 views