huggingface / chat-ui

Open source codebase powering the HuggingChat app
https://huggingface.co/chat
Apache License 2.0
7.31k stars 1.06k forks source link

Immediate oauth check #1495

Open coyotte508 opened 3 days ago

coyotte508 commented 3 days ago

Describe your feature request

When OAuth is configured, and user is not logged in, do an immediate oauth check with prompt=none. It will either log the user in or redirect back with an error, it should be transparent for the user.

That way, the user doesn't have to click the login button (or hit the guest rate limit messages) if their session expired.

Screenshots (if relevant)

Implementation idea