supabase / auth-py

Python client implementation for Supabase Auth
MIT License
81 stars 40 forks source link

_remove_session bug causing sign_up to fail #630

Open jpan8866 opened 1 week ago

jpan8866 commented 1 week ago

Bug report

Describe the bug

A clear and concise description of what the bug is.

When using async client's auth.sign_up, it will fail due to _remove_session. Specifically, the line

await self._storage.remove_item(self._storage_key)

will error out due to remove_item returning None.

To Reproduce

Try to use auth.signup with async client

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

Error removing session: object NoneType can't be used in 'await' expression

System information

macOS

Additional context

Add any other context about the problem here.

silentworks commented 5 days ago

Please provide a reproducible example repo. I can't replicate this from my end.