Skip to content

Commit f46f92f

Browse files
committed
chore: apply suggestions from code review
Co-authored-by: Vincent <vinckr@posteo.net>
1 parent 6e79f80 commit f46f92f

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

code-examples/protect-page-login/react/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Ory React Authentication Example
22

3-
This example demonstrates how to implement authentication in a React.js
3+
This example demonstrates how to implement authentication in a React
44
application built with Vite and TypeScript using Ory.
55

66
## Prerequisites
@@ -9,17 +9,17 @@ application built with Vite and TypeScript using Ory.
99
- An Ory Network account with a project set up
1010
- Your Ory Project ID
1111

12-
## Getting Started
12+
## Get started
1313

14-
### 1. Install Dependencies
14+
### 1. Install dependencies
1515

1616
First, install the necessary dependencies by running:
1717

1818
```bash
1919
npm install
2020
```
2121

22-
### 2. Start the Application
22+
### 2. Start the application
2323

2424
You can start the application with:
2525

@@ -46,7 +46,7 @@ npx @ory/cli tunnel --dev http://localhost:5173
4646
This will make Ory APIs available at `http://localhost:4000`, which is the URL
4747
used as the `basePath` in the Ory SDK configuration.
4848

49-
## Making API Calls
49+
## Making API calls
5050

5151
The example also demonstrates how to make authenticated API calls to a backend
5252
server. To run the API server:
@@ -65,13 +65,13 @@ node index.js
6565
The API server runs on port 8081 and requires the proper session cookies from
6666
Ory to authenticate requests.
6767

68-
## Project Structure
68+
## Project structure
6969

7070
- `src/App.tsx` - Basic authentication example
7171
- `src/AppWithApi.tsx` - Authentication with API integration example
7272
- `src/api/index.js` - Express.js API server example
7373

74-
## Available Scripts
74+
## Available scripts
7575

7676
- `npm run dev` - Start the development server
7777
- `npm run build` - Build the app for production

docs/getting-started/integrate-auth/25_react.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,7 @@ npx @ory/cli tunnel --dev http://localhost:5173 --project <project-id>
6464
```
6565

6666
This command mirrors Ory APIs on `http://localhost:4000`. Use that URL as the `basePath` for the `@ory/client-fetch` SDK (see
67-
`App.tsx` code below). The `--dev` flag disables security checks for easier integration and should not be used when running the
68-
Tunnel in an insecure environment like public networks.
67+
`App.tsx` code below). The `--dev` flag disables security checks for easier integration and shouldn't be used when running Ory Tunnel in an insecure environment like public networks.
6968

7069
## Validate and login
7170

docs/getting-started/integrate-auth/35_react-native.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sidebar_label: React Native
66

77
import CodeFromRemote from "@theme/CodeFromRemote"
88

9-
This guide shows how to create a simple React native application and secure it with authentication powered by Ory. You can use
9+
This guide shows how to create a simple React Native application and secure it with authentication powered by Ory. You can use
1010
this guide with both Ory Network and self-hosted Ory software.
1111

1212
This guide is perfect for you if:

0 commit comments

Comments
 (0)