r/androiddev•
bleeding182

Auth Library for the Account Framework

Library

I just released a new version for a small authentication library that I've been working on to reduce copying of untested code between projects.

The library wraps the Android Account Manager framework and stores/retrieves access and refresh tokens along with some basic user data. It should help with basic OAuth flows and provide a thread safe token refresh option.

Further it is intended to be a small, working sample for an Android Authenticator, since the documentation is scarce, confusing at best.

It's still a work in progress (hence the 0.* version) so I'd love to hear your feedback!

You can find a minimal example that uses the reddit API in the /app folder.

https://github.com/bleeding182/auth

Posted Feb 19, 2019, 5:56 PM UTC

109
Loading comments…