ronzeidman / ng2-ui-auth

an angular2 repository for authentication based on angular1's satellizer
MIT License
206 stars 64 forks source link

Example for 8.x #128

Closed KANekT closed 6 years ago

KANekT commented 6 years ago

defaultHeaders - No need, you can create your own interceptor.

How ? I need Example :)

ronzeidman commented 6 years ago

You can see the guide at Angular's site for using interceptors: https://angular.io/guide/http#intercepting-all-requests-or-responses

ronzeidman commented 6 years ago

updated the example at last:

1) git clone https://github.com/ronzeidman/ng2-ui-auth-example.git
2) cd ng2-ui-auth-example
3) npm i
4) replace '<replace me>' tags from /server/src/config.ts and /client/src/config.ts with your google secret and client id 
5) npm start
3) start your browser at localhost:4200