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

supabase / auth / 15683069484
69%

Build:
DEFAULT BRANCH: master
Ran 16 Jun 2025 02:12PM UTC
Jobs 1
Files 140
Run time 5min
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

16 Jun 2025 02:05PM UTC coverage: 69.993% (-0.1%) from 70.114%
15683069484

push

github

web-flow
Add Facebook Limited Login Support for iOS (#2046)

## What kind of change does this PR introduce?

This PR adds support for [Facebook Limited
Login](https://developers.facebook.com/docs/facebook-login/limited-login/)
JWT (iOS only) to the `/token?grant_type=id_token` endpoint. This
enables iOS apps using Facebook's Limited Login feature to authenticate
with Supabase without requiring web browser redirects.

## What is the current behavior?

Currently, the `/token?grant_type=id_token` endpoint does not support
Facebook as a provider. When iOS apps using Facebook Limited Login try
to authenticate with their JWT, they receive a `Bad ID token` error
because Facebook's JWT structure is not recognized by the generic OIDC
parser. This is already raised by users in
https://github.com/supabase/auth/issues/1522 as well.

## What is the new behavior?

- iOS apps can now authenticate using Facebook Limited Login JWT via
`signInWithIdToken()` function on the client side
  - Facebook JWT are properly parsed and validated
- End users can authenticate on iOS even if they dont allow tracking
([ATT](https://developer.apple.com/documentation/apptrackingtransparency))

## Additional context

Important: Android Platform Limitations

This implementation only supports iOS Facebook Limited Login. Android
developers must continue using the standard OAuth flow
(`signInWithOAuth()`) with web browser redirects.

Why Android is not supported in this PR:

1. Fundamental Token Differences:
- iOS: Facebook Limited Login provides self-contained JWT ID tokens that
follow OIDC standards
- Android: Facebook SDK only provides opaque access tokens (random
strings, not JWTs)
2. Validation Requirements:
- iOS JW: Can be validated using standard OIDC/JWKS (already handled by
our infrastructure)
- Android access tokens: Require calling Facebook Graph API for
validation
3. Architectural Considerations:
- The /token?grant_type=id_token endpoint is designed specifically for
OIDC-compliant JWT
-... (continued)

0 of 28 new or added lines in 1 file covered. (0.0%)

11350 of 16216 relevant lines covered (69.99%)

69.15 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
28
45.95
-4.8% internal/api/provider/oidc.go
Jobs
ID Job ID Ran Files Coverage
1 15683069484.1 16 Jun 2025 02:12PM UTC 140
69.99
GitHub Action Run
Source Files on build 15683069484
  • Tree
  • List 140
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 4de7bd67 on github
  • Prev Build on master (#15681973538)
  • Next Build on master (#15734812156)
  • 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