From 801fdb5045abdc6e21a0b98561fa25dc7e14d706 Mon Sep 17 00:00:00 2001 From: Greg Holmes Date: Thu, 12 Dec 2024 14:59:11 +0000 Subject: [PATCH] fixup! Add generate JWT authentication example --- examples/auth-generate-token/javascript/README.md | 2 +- examples/auth-generate-token/javascript/index.html | 2 +- examples/auth-generate-token/page.md | 6 +++--- examples/auth-generate-token/react/README.md | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/auth-generate-token/javascript/README.md b/examples/auth-generate-token/javascript/README.md index d347f967ca..51ec023a8e 100644 --- a/examples/auth-generate-token/javascript/README.md +++ b/examples/auth-generate-token/javascript/README.md @@ -1,4 +1,4 @@ -# Generate a JWT to authenticate clients +# Generate an Ably token to authenticate clients This folder contains the code for the authentication (Typescript) - a demo of how you can authenticate with [Ably](https://ably.com/docs/auth) to use any of the products. diff --git a/examples/auth-generate-token/javascript/index.html b/examples/auth-generate-token/javascript/index.html index f7507695c3..5858224976 100644 --- a/examples/auth-generate-token/javascript/index.html +++ b/examples/auth-generate-token/javascript/index.html @@ -5,7 +5,7 @@ - Generate JWT + Generate Token
diff --git a/examples/auth-generate-token/page.md b/examples/auth-generate-token/page.md index cec9586ef0..3609ee9a7f 100644 --- a/examples/auth-generate-token/page.md +++ b/examples/auth-generate-token/page.md @@ -1,8 +1,8 @@ -# Generate a JWT to authenticate clients +# Generate an Ably token to authenticate clients -Use a JWT to securely authenticate users within your application. +Use an Ably token to securely authenticate users within your application. -JWTs enable you to grant users access to the Ably platform. They are used to issue time-limited credentials that securely authorize users, and manage which resources each user has access to. +Ably tokens enable you to grant users access to the Ably platform. They are used to issue time-limited credentials that securely authorize users, and manage which resources each user has access to. Authentication is the first step for an application to communicate with Ably. The application initializes a client and calls a predefined `authUrl` endpoint on your backend server. This endpoint uses an API key to request a token from Ably and returns it to the requesting client. When the token nears expiry, the `authUrl` is automatically invoked to request a new token. diff --git a/examples/auth-generate-token/react/README.md b/examples/auth-generate-token/react/README.md index 28c133d0c3..d9ccedd533 100644 --- a/examples/auth-generate-token/react/README.md +++ b/examples/auth-generate-token/react/README.md @@ -1,4 +1,4 @@ -# Generate a JWT to authenticate clients +# Generate a Ably token to authenticate clients This folder contains the code for the authentication (React) - a demo of how you can authenticate with [Ably](https://ably.com/docs/auth) to use any of the products.