redwoodjs / playground-auth

This repo demonstrates all the authentication providers that Redwood supports
https://redwood-playground-auth.netlify.app/
MIT License
34 stars 25 forks source link

On main view with all providers, add authenticated badge indicator #35

Closed dthyresson closed 3 years ago

dthyresson commented 3 years ago

image

Since one can be logged in/authenticated to multiple providers, it might be nice to show an Authenticated status in each provider box, section.

You might be able to reuse

https://github.com/redwoodjs/playground-auth/blob/main/web/src/components/Badge/Badge.js

but wrap it in the AuthProvider needed:

<AuthProvider client={supabase} type="supabase">

But that would require creating a client per box too, which is fine.

The "not logged in" or unauthenticated would be a nice call-to-action to then try to sign in/up.

lunchbreakdev commented 3 years ago

I'm happy to take this on if y'all need help!

WizardSource commented 3 years ago
Screen Shot 2021-04-18 at 3 45 55 PM

Didn't want to open a new issue for this but just worked on an idea for AuthResults to display in a separate container.

dthyresson commented 3 years ago
Screen Shot 2021-04-18 at 3 45 55 PM

Didn't want to open a new issue for this but just worked on an idea for AuthResults to display in a separate container.

@WizardSource Thanks! That could definitely help readability.

We have 2 helpers to let you know auth is working ok: the results abs a refresh token poll. Both could use some love

If you push a PR we can review