You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/nuxt-app/README.md
+20-15Lines changed: 20 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
# Ory Nuxt Example
2
2
3
-
This example demonstrates how to integrate Ory authentication flows with a Nuxt 4 application using `@ory/nuxt` and `@ory/elements-vue`.
3
+
This example demonstrates how to integrate Ory authentication flows with a Nuxt
4
+
4 application using `@ory/nuxt` and `@ory/elements-vue`.
4
5
5
6
## Project Structure
6
7
@@ -109,13 +110,15 @@ body {
109
110
}
110
111
```
111
112
112
-
The `@import` imports the default Ory theme styles, while `@source` tells Tailwind to scan the Ory elements package for class names used in components.
113
+
The `@import` imports the default Ory theme styles, while `@source` tells
114
+
Tailwind to scan the Ory elements package for class names used in components.
113
115
114
116
## Using Ory Components
115
117
116
118
### Auth Pages
117
119
118
-
Import the flow component and use the corresponding composable (e.g., `pages/login.vue`):
120
+
Import the flow component and use the corresponding composable (e.g.,
|`useOryLoginFlow()`| Initialize or retrieve login flow|
183
185
|`useOryRegistrationFlow()`| Initialize or retrieve registration flow |
184
-
|`useOryRecoveryFlow()`| Initialize or retrieve recovery flow |
186
+
|`useOryRecoveryFlow()`| Initialize or retrieve recovery flow|
185
187
|`useOryVerificationFlow()`| Initialize or retrieve verification flow |
186
-
|`useOrySettingsFlow()`| Initialize or retrieve settings flow |
187
-
|`useAsyncOrySession()`| Get current session (async) |
188
+
|`useOrySettingsFlow()`| Initialize or retrieve settings flow|
189
+
|`useAsyncOrySession()`| Get current session (async)|
188
190
189
191
## Running the Example
190
192
@@ -204,11 +206,14 @@ npm run dev --workspace=nuxt-app
204
206
205
207
The app will be available at http://localhost:3000.
206
208
207
-
> **Note:** The `prepare:types` script runs `nuxt prepare` to generate TypeScript declarations for better IDE support. This is optional as `nuxt dev` and `nuxt build` run it automatically.
209
+
> **Note:** The `prepare:types` script runs `nuxt prepare` to generate
210
+
> TypeScript declarations for better IDE support. This is optional as `nuxt dev`
211
+
> and `nuxt build` run it automatically.
208
212
209
213
## Internationalization (i18n)
210
214
211
-
The example uses English (`en`) locale by default. To change the locale, update `nuxt.config.ts`:
215
+
The example uses English (`en`) locale by default. To change the locale, update
0 commit comments