From ed4bda394d37e4743de000d13fe509521e869dfe Mon Sep 17 00:00:00 2001 From: UgurTuran Date: Fri, 3 Apr 2026 11:43:53 +0300 Subject: [PATCH 1/2] Update 01-setup.md The current documentation for the JWT refresh endpoint doesn't explicitly state that it needs to be placed in the endpoints directory for the generator to pick it up. Added a clarification for better DX for those who are like me, just starting server side of things. --- docs/06-concepts/11-authentication/01-setup.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/06-concepts/11-authentication/01-setup.md b/docs/06-concepts/11-authentication/01-setup.md index 2198def1..d28aebec 100644 --- a/docs/06-concepts/11-authentication/01-setup.md +++ b/docs/06-concepts/11-authentication/01-setup.md @@ -59,8 +59,7 @@ void run(List 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. ```dart import 'package:serverpod_auth_idp_server/core.dart' as core; From 7495355faadba8321130ed9690e3f567a8e7cc27 Mon Sep 17 00:00:00 2001 From: UgurTuran Date: Fri, 3 Apr 2026 12:09:05 +0300 Subject: [PATCH 2/2] add clarification for EmailIdpEndpoint location The current documentation for the EmailIdpEndpoint doesn't explicitly state that it needs to be placed in the endpoints directory for the generator to pick it up. Added a clarification for better DX. --- .../11-authentication/04-providers/02-email/01-setup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/06-concepts/11-authentication/04-providers/02-email/01-setup.md b/docs/06-concepts/11-authentication/04-providers/02-email/01-setup.md index fdaabc57..2da19b18 100644 --- a/docs/06-concepts/11-authentication/04-providers/02-email/01-setup.md +++ b/docs/06-concepts/11-authentication/04-providers/02-email/01-setup.md @@ -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: ```dart import 'package:serverpod_auth_idp_server/providers/email.dart';