supabase-community / supabase-kt

A Kotlin Multiplatform Client for Supabase.
https://supabase.com/docs/reference/kotlin/introduction
MIT License
328 stars 33 forks source link

Ignore certain status codes when signing out a user #633

Closed jan-tennert closed 2 days ago

jan-tennert commented 3 days ago

What kind of change does this PR introduce?

Bug fix (closes #631)

What is the current behavior?

API errors indicating the user doesn't exist/an invalid or expired JWT was used, throw an exception and therefore the sign-out flow doesn't finish.

What is the new behavior?

The error codes 401, 403, 404 now get ignored and if received, the user will still be logged out.