authgear / authgear-server

Open source alternative to Auth0 / Firebase Auth
https://www.authgear.com
Apache License 2.0
81 stars 37 forks source link

Fix key input validation pattern and test #4739

Closed mickmak-busicat closed 2 weeks ago

mickmak-busicat commented 2 weeks ago

@louischan-oursky fixed validation pattern and added few more tests to it🙏

Preview:

=== RUN   TestValidateKey
.........
10 total assertions

--- PASS: TestValidateKey (0.00s)
PASS
ok      github.com/authgear/authgear-server/pkg/lib/rolesgroups (cached)