• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / auth / 20307749740
69%

Build:
DEFAULT BRANCH: master
Ran 17 Dec 2025 03:26PM UTC
Jobs 1
Files 170
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

17 Dec 2025 03:18PM UTC coverage: 68.536% (+0.009%) from 68.527%
20307749740

push

github

web-flow
feat: allow amr claim to be array of strings or objects (#2274)

## Summary

This PR loosens the validation for the `amr` (Authentication Method
Reference) claim in custom access token hooks to accept both array of
strings and array of objects, instead of only array of objects.

- **Test Coverage**: Added two new test cases:
- Modify amr to be array of strings - Verifies that `amr` as an array of
strings passes validation
- Modify amr to be array of objects - Verifies that `amr` as an array of
objects still works (backward compatibility)

## Motivation

This change provides more flexibility for custom access token hooks.
[RFC-8176
](https://www.rfc-editor.org/rfc/rfc8176.html#section-1)requires `amr`
to be array of strings.

## Testing

All tests pass, including:
- Existing custom access token tests
- New test for `amr` as array of strings
- New test for `amr` as array of objects

## Backward Compatibility

**Fully backward compatible** - The change only adds support for an
additional format. Existing hooks that return `amr` as an array of
objects will continue to work without any changes.

21 of 28 new or added lines in 1 file covered. (75.0%)

14703 of 21453 relevant lines covered (68.54%)

78.19 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
7
80.97
-0.26% internal/tokens/service.go
Jobs
ID Job ID Ran Files Coverage
1 20307749740.1 17 Dec 2025 03:26PM UTC 170
68.54
GitHub Action Run
Source Files on build 20307749740
  • Tree
  • List 170
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 607da43b on github
  • Prev Build on master (#20136212429)
  • Next Build on master (#20365287369)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc