Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 1.04 KB

README.md

File metadata and controls

19 lines (12 loc) · 1.04 KB

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

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.