An open API service indexing awesome lists of open source software.

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

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.