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 18, 2024
1 parent f91deaf commit a7ccc91
Show file tree
Hide file tree
Showing 31 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generate an Ably token 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 All @@ -13,7 +13,7 @@ git clone [email protected]:ably/docs.git
2. Change directory:

```sh
cd /examples/auth-generate-token/javascript/
cd /examples/auth-request-token/javascript/
```

3. Install dependencies:
Expand All @@ -31,7 +31,7 @@ yarn run dev
5. In a new tab, change directory:

```sh
cd /examples/auth-generate-token/server/
cd /examples/auth-request-token/server/
```

6. Rename the environment file:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "auth-generate-token",
"name": "auth-request-token",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Generate an Ably token to authenticate clients
# Request an Ably Token to authenticate clients

Use an Ably token to securely authenticate users within your application.
Use an Ably Token to securely authenticate your users.

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.
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.

Authentication is implemented using [Ably core Pub/Sub](https://ably.com/docs/auth). The Pub/Sub SDK provides authentication capabilities that are shared across all Ably products. The SDK includes purpose-built APIs that streamline pub/sub features while delivering Ably's performance guarantees and scaling capabilities.
Authentication is implemented using [Ably Pub/Sub](https://ably.com/docs/auth). The Pub/Sub SDK provides the authentication mechanism that is utilized by all Ably products. It provides a set of flexible APIs capable of building any realtime application and is powered by Ably's reliable and scalable platform.

## Resources

Expand Down Expand Up @@ -43,7 +43,7 @@ git clone [email protected]:ably/docs.git
2. Change directory:

```sh
cd /examples/auth-generate-token/react/
cd /examples/auth-request-token/react/
```

3. Install dependencies:
Expand All @@ -61,7 +61,7 @@ yarn run dev
5. In a new tab, change directory:

```sh
cd /examples/auth-generate-token/server/
cd /examples/auth-request-token/server/
```

6. Rename the environment file:
Expand Down Expand Up @@ -97,7 +97,7 @@ git clone [email protected]:ably/docs.git
2. Change directory:

```sh
cd /examples/auth-generate-token/javascript/
cd /examples/auth-request-token/javascript/
```

3. Install dependencies:
Expand All @@ -115,7 +115,7 @@ yarn run dev
5. In a new tab, change directory:

```sh
cd /examples/auth-generate-token/server/
cd /examples/auth-request-token/server/
```

6. Rename the environment file:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generate a Ably token 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 All @@ -13,7 +13,7 @@ git clone [email protected]:ably/docs.git
2. Change directory:

```sh
cd /examples/auth-generate-token/react/
cd /examples/auth-request-token/react/
```

3. Install dependencies:
Expand All @@ -31,7 +31,7 @@ yarn run dev
5. In a new tab, change directory:

```sh
cd /examples/auth-generate-token/server/
cd /examples/auth-request-token/server/
```

6. Rename the environment file:
Expand Down
File renamed without changes.

0 comments on commit a7ccc91

Please sign in to comment.