MCPcopy Index your code
hub / github.com/auth0-blog/angular2-authentication-sample

github.com/auth0-blog/angular2-authentication-sample @0.0.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.0.1 ↗ · + Follow
34 symbols 48 edges 19 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Angular 2: Authentication sample.

This sample shows how to create an angular 2 app that: * Has lots of different routes * Performs authentication with JWTs * Calls APIs authenticated and not. * Extends the RouterOutlet for route pipeline changes.

You can learn more about how it works in this blogpost

Running it

Clone this repository as well as the server for this example.

First, run the server app in the port 3001.

Then, run npm install on this project and run npm start to start the app. Then just navigate to http://localhost:3000 :boom: Use npm run server to run API server.

Extension points exported contracts — how you extend this code

Window (Interface)
(no doc)
typings/_custom/jwt_decode.d.ts
ObjectConstructor (Interface)
(no doc)
typings/_custom/browser.d.ts

Core symbols most depended-on inside this repo

createToken
called by 2
backend/user-routes.js
_callApi
called by 2
src/home/home.ts
root
called by 1
webpack.config.js
jwt_decode
called by 1
typings/_custom/jwt_decode.d.ts
getBanner
called by 0
webpack.config.js
rootNode
called by 0
webpack.config.js
StatusError
called by 0
backend/statusError.js
constructor
called by 0
src/home/home.ts

Shape

Method 17
Class 10
Function 5
Interface 2

Languages

TypeScript100%

Modules by API surface

src/home/home.ts7 symbols
src/signup/signup.ts5 symbols
src/login/login.ts5 symbols
src/app/LoggedInOutlet.ts4 symbols
webpack.config.js3 symbols
typings/_custom/browser.d.ts3 symbols
src/app/app.ts3 symbols
typings/_custom/jwt_decode.d.ts2 symbols
backend/user-routes.js1 symbols
backend/statusError.js1 symbols

For agents

$ claude mcp add angular2-authentication-sample \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact