Full-Stack Code Samples: Angular + TypeScript

Build a custom "Hello World" sample that shows how Angular + TypeScript authentication works together with API server authorization to secure a full-stack application.

check mark icon
Client framework

https://cdn.auth0.com/blog/developer-hub/angular-logo.svg
https://cdn.auth0.com/blog/developer-hub/typescript-logo.svg
Angular + TypeScript

check mark icon
Client type

Single-Page App

check mark icon
Security level

Basic Role-Based Access Control

check mark icon
Use case

https://cdn.auth0.com/blog/developer-hub/auth0-shield-black.svg
https://cdn.auth0.com/blog/developer-hub/hello-world.svg
Hello World

Choose a backend framework:

Actix Web logo
Rust logo
api
authorization
rbac
Actix Web + Rust
This code sample uses Actix Web v3.3.2 and Rust v1.56
api
authorization
rbac
Django logo
Python logo
api
authorization
rbac
Django + Python
This code sample uses Django v3.2.8 and Python v3.7+
api
authorization
rbac
.NET logo
C# logo
api
authorization
rbac
.NET + C#
This code sample uses .NET v5.0
api
authorization
rbac
Express.js logo
JavaScript logo
api
authorization
rbac
Express.js + JavaScript
This code sample uses Express.js v4.17.1
api
authorization
rbac
Express.js logo
TypeScript logo
api
authorization
rbac
Express.js + TypeScript
This code sample uses Express.js v4.17.1 and TypeScript v4.4.4
api
authorization
rbac
Flask logo
Python logo
api
authorization
rbac
Flask + Python
This code sample uses Flask v2.0.2 and Python v3.9.8
api
authorization
rbac
Laravel logo
PHP logo
api
authorization
rbac
Laravel + PHP
This code samples uses Laravel v8.75.0 and the Auth0 PHP SDK v8.0.3. It supports PHP v7.4 or v8.0.
api
authorization
rbac
Lumen logo
PHP logo
api
authorization
rbac
Lumen + PHP
This code samples uses Lumen v8.3.1 and the Auth0 PHP SDK v8.0.3. It supports PHP v7.4.5.
api
authorization
rbac
Phoenix logo
Elixir logo
api
authorization
rbac
Phoenix + Elixir
This code sample uses Phoenix v1.6.2 and Elixir v1.12
api
authorization
rbac
Rails logo
Ruby logo
api
authorization
rbac
Rails + Ruby
This code sample uses Rails v6.1.4 and Ruby 3.0
api
authorization
rbac
Spring Boot logo
Java logo
api
authorization
rbac
Spring Boot + Java
This code sample uses Spring Boot v2.6.1 and Java v17.0.1.
api
authorization
rbac
Spring Functional logo
Java logo
api
authorization
rbac
Spring Functional + Java
This code sample follows a functional approach to build a Spring API. It uses Spring Boot v2.6.1 and Java v17.0.1.
api
authorization
rbac
Standard Library logo
Golang logo
api
authorization
rbac
Standard Library + Golang
This code sample uses Golang v1.15+
api
authorization
rbac