android / nowinandroid

A fully functional Android app built entirely with Kotlin and Jetpack Compose
Apache License 2.0
17.38k stars 3.17k forks source link

[FR]: Add login functionality to the app #261

Open yschimke opened 2 years ago

yschimke commented 2 years ago

Is there an existing issue for this?

Describe the problem

A typical app should deal with login, including say authenticated requests. It would be good to have a nice sample for this. Not sure exactly what should be implemented by ideas

a) Server with oauth support b) Integration with Google Signin c) Some persistence associated with accounts

If we eventually add a Wear app here, it would be good to show some good examples for login with paired and standalone devices also.

Describe the solution

Implement accounts and login in the app and server.

Additional context

No response

Code of Conduct

tunjid commented 2 years ago

@yschimke so this is planned, along with multiple user accounts all backed by google sign in. We just need a few integration pieces to fall in before we can implement it.

fi8er1 commented 2 months ago

2 years and this issue is still open. This is a major blocker for devs migrating to Compose. Sigh!

dturner commented 2 months ago

@fi8er1 How is this a blocker for migrating to Compose?

fi8er1 commented 2 months ago

@dturner NiA being as an example project with all its complexity fails to cover a basic functionality of authenticated and unauthenticated user flows. For the past couple of days I am stuck at deciding what is the proper approach to tackle this using compose navigation.

fi8er1 commented 2 months ago

@dturner I would love to see any official sample which covers this.