Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions docs/06-concepts/11-authentication/01-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ void run(List<String> args) async {
await pod.start();
}
```

Then, extend the abstract endpoint for refreshing JWT tokens to expose it on the server:
Then, extend the abstract endpoint for refreshing JWT tokens to expose it on the server, by creating a new endpoint file in your server's lib/src/endpoints/ directory so that the generator can detect and register the endpoint.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Then, extend the abstract endpoint for refreshing JWT tokens to expose it on the server, by creating a new endpoint file in your server's lib/src/endpoints/ directory so that the generator can detect and register the endpoint.
Then extend the abstract endpoint for refreshing JWT tokens to expose it on the server. Create the file anywhere under your server's `lib/` directory (for example, `<project>_server/lib/src/endpoints/`); the generator picks it up:


```dart
import 'package:serverpod_auth_idp_server/core.dart' as core;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ void _sendPasswordResetCode(
}
```

Then, extend the abstract endpoint to expose it on the server:
Then, extend the abstract endpoint to expose it on the server, by creating a new endpoint file in your `lib/src/endpoints/` directory to expose the email-specific authentication routes:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Then, extend the abstract endpoint to expose it on the server, by creating a new endpoint file in your `lib/src/endpoints/` directory to expose the email-specific authentication routes:
Then extend the abstract endpoint to expose the email authentication routes on the server. Create the file anywhere under your server's `lib/` directory (for example, `<project>_server/lib/src/endpoints/`); the generator picks it up:


```dart
import 'package:serverpod_auth_idp_server/providers/email.dart';
Expand Down
Loading