Skip to content

Commit

Permalink
fixup! Add generate JWT authentication example
Browse files Browse the repository at this point in the history
  • Loading branch information
GregHolmes committed Dec 12, 2024
1 parent 2f4fb30 commit 801fdb5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/auth-generate-token/javascript/README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
2 changes: 1 addition & 1 deletion examples/auth-generate-token/javascript/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href='https://fonts.googleapis.com/css?family=Inter' rel='stylesheet'>
<link rel="stylesheet" href="src/styles.css" />
<title>Generate JWT</title>
<title>Generate Token</title>
</head>
<body class="font-inter">
<div class="flex items-center justify-center min-h-screen bg-gray-100">
Expand Down
6 changes: 3 additions & 3 deletions examples/auth-generate-token/page.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
2 changes: 1 addition & 1 deletion examples/auth-generate-token/react/README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down

0 comments on commit 801fdb5

Please sign in to comment.