mitchelvanbever / remix-auth-supabase

MIT License
102 stars 14 forks source link

fix: sanitize session data to prevent max cookie size issue #16

Closed rphlmr closed 2 years ago

rphlmr commented 2 years ago

Should fix https://github.com/mitchelvanbever/remix-auth-supabase/issues/15

With some OAuth provider, we hit the 4kb cookie size limit due to huge Supabase Session datas.

I propose to sanitize what I think is useless data. (session.user?.identities ==> list off all supabase identites linked to the user, I guess)

Open to discuss :p

rphlmr commented 2 years ago

Can be replaced by https://github.com/mitchelvanbever/remix-auth-supabase/pull/20

mitchelvanbever commented 2 years ago

Closing in favor of #20