Skip to content

This is a sample repository of an Angular app with TypeScript that offers passkey authentication.

License

Notifications You must be signed in to change notification settings

corbado/example-passkeys-angular

Repository files navigation

Complete passkeys integration example for Angular (TypeScript) with Corbado

This is a sample implementation of the Corbado web-js package being integrated into a web application built with Angular (TypeScript).

File structure

  • src/app/app.module.ts: acts as a boundary to load the Corbado project
  • src/app/app-routing.module.ts: routing for the Angular web app
  • src/app/login: component for the login screen
  • src/app/profile: component for the user profile information that is shown after successful authentication

Setup

Prerequisites

Please follow the steps in Getting started to create and configure a project in the Corbado developer panel.

You need to have Node, Angular CLI and npm installed to run it.

Usage

Install Angular CLI:

npm i -g @angular/cli

Run

npm i

to install all dependencies.

Finally, you can run the project locally with

ng serve