Skip to content

A simple, structured, flutter app to interact with the golang backend to log user, create user, change password with JWT security

License

Notifications You must be signed in to change notification settings

vinpel/flutter_sample_api_jwt

Repository files navigation

Issues MIT License LinkedIn


Logo

flutter_sample_api_jwt

A simple, structured, flutter app to interact with the golang backend to log user, create user, change password with JWT security
golang-sample-api-jwt

Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Screenshot
  3. Prerequisites
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgments
  9. Flutter packages

About The Project

This flutter application does the following things :

  • Display a an email/password screen if no jwt token stored.
  • Automacly log the user if a accessToken or refreshToken is still valid
  • Allow logged user to logout (destroy tokens)
  • Allow user to create a new user
  • Allow user to change password
  • Allow user to access the JWT secured resource "ping"

To test the ping resource without identification, change the password with the checkbox checked for your account.

(back to top)

Screenshot

Login Page:

Home Page

Create user page

Change Password

(back to top)

Prerequisites

  • flutter
  • a running application "golang-sample-api-jwt" on "localhost:8000"

Roadmap

  • Login and store JWT token in flutter_secure
  • Use the JWT via an interceptor in HTTP Header for Ping Secure
  • Gracefully report API return error
  • Use the onError interceptor
  • Redirect to the login page if HTTPcode = 400 or 401 (empreinte changed for example)
  • Do somes test

See the open issues for a full list of proposed features (and known issues).

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Contact

Vincent Pélisset - @g4spine

Project Link: https://github.com/vinpel/flutter_sample_api_jwt

(back to top)

Acknowledgments

(back to top)

Flutter packages

About

A simple, structured, flutter app to interact with the golang backend to log user, create user, change password with JWT security

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published