https://github.com/letsila/ionic2-jwt-auth-example
An example of client side implementation of JWT (JSON web token) authentication using Ionic2
https://github.com/letsila/ionic2-jwt-auth-example
angular2 auth ionic2 jwt
Last synced: 6 months ago
JSON representation
An example of client side implementation of JWT (JSON web token) authentication using Ionic2
- Host: GitHub
- URL: https://github.com/letsila/ionic2-jwt-auth-example
- Owner: letsila
- License: mit
- Created: 2016-10-06T16:38:09.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-27T17:32:46.000Z (over 9 years ago)
- Last Synced: 2025-10-13T05:46:07.404Z (6 months ago)
- Topics: angular2, auth, ionic2, jwt
- Language: JavaScript
- Homepage:
- Size: 1.14 MB
- Stars: 16
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Ionic2 jwt example
This repository contains example of a client side implementation of JWT authentication using Ionic2.
The server side code related to this project can be found [here](https://github.com/letsila/slim3-jwt-example)
## Login page
The login page contains just a login and password inputs.
Once the user have provided valid credentials, a token will be issued by the server and saved
under localstorage on our ionic app. Then the user is redirected to the home page.
## Home page
From the home page, the user can request restricted data (which is going to send a GET request with authorization header to the server) or logout.