-
Notifications
You must be signed in to change notification settings - Fork 13
feat/prompt-login added #62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
WalkthroughReplaced hard-coded prompt strings with constants from AdditionalParameters. Updated login() and register() to default prompts via constants. register() now clears storage at start and continues PKCE flow. Added new prompt constants (login, create, none) to AdditionalParameters. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant App as Client App
participant SDK as KindeClientSDK
participant AS as Auth Server
rect rgb(240,248,255)
note over SDK: login()
App->>SDK: login(options)
alt prompt not provided
SDK->>SDK: use AdditionalParameters::PROMPT_LOGIN
else prompt provided
SDK->>SDK: use provided prompt
end
SDK->>AS: Start Auth (AC or PKCE) with prompt
AS-->>SDK: Redirect/Auth response
SDK-->>App: Auth result
end
rect rgb(245,255,240)
note over SDK: register()
App->>SDK: register(options)
SDK->>SDK: cleanStorage()
alt prompt not provided
SDK->>SDK: use AdditionalParameters::PROMPT_CREATE
else prompt provided
SDK->>SDK: use provided prompt
end
SDK->>AS: Start PKCE Auth with prompt
AS-->>SDK: Redirect/Auth response
SDK-->>App: Auth result
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. 📜 Recent review detailsConfiguration used: .coderabbit.yaml 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (2)
🧰 Additional context used🧬 Code graph analysis (1)lib/KindeClientSDK.php (4)
🔇 Additional comments (5)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
Status, Documentation and Community
|
Enhanced Prompt Functionality - Match JS Utils SDK
Adds professional prompt functionality to PHP SDK that exactly matches JS Utils SDK behavior.
Changes
PROMPT_LOGIN
,PROMPT_CREATE
,PROMPT_NONE
login()
: auto-appliesprompt=login
register()
: auto-appliesprompt=create
Files Modified
lib/Sdk/Enums/AdditionalParameters.php
- Added prompt constantslib/KindeClientSDK.php
- Enhanced login/register methods