From 044672c6dda0c17ddc89cb588411beaef8fa69fc Mon Sep 17 00:00:00 2001 From: Arnaud Dagnelies Date: Mon, 30 Oct 2023 08:49:12 +0000 Subject: [PATCH] fixed formatting --- getting_started/javascript_spa.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/getting_started/javascript_spa.md b/getting_started/javascript_spa.md index 624272f..bbac575 100644 --- a/getting_started/javascript_spa.md +++ b/getting_started/javascript_spa.md @@ -7,8 +7,8 @@ Getting Started - Javascript - The demo can be seen here: https://passwordless-id.github.io/demo/ - The full source code is available here: https://github.com/passwordless-id/demo -1. Create an HTML page ----------------------- +Create an HTML page +------------------- ```html @@ -40,8 +40,8 @@ Getting Started - Javascript ``` -2. Trigger the sign-in ----------------------- +Trigger the sign-in +-------------------- It uses the OAuth2 / OpenID flow using the [@passwordless-id/connect](https://github.com/passwordless-id/connect) library. @@ -75,8 +75,8 @@ async function init() { init() ``` -3. Show the profile -------------------- +Show the profile +---------------- The retrieved `user` has the following structure. @@ -94,10 +94,10 @@ The retrieved `user` has the following structure. } ``` -4. Trigger the sign-out ------------------------ +Trigger the sign-out +-------------------- -5. Using the token for API calls --------------------------------- +Using the token for API calls +----------------------------- Once you obtain the user, you can also send the `token_id` to your server API as proof of the user's authenticity. This is a Json Web Token containing a signature that can be verified by common libraries. \ No newline at end of file