Skip to content

chore: refactor direct login to use object#2677

Closed
ImmutableJeffrey wants to merge 2 commits into
mainfrom
feat/headless-login
Closed

chore: refactor direct login to use object#2677
ImmutableJeffrey wants to merge 2 commits into
mainfrom
feat/headless-login

Conversation

@ImmutableJeffrey

@ImmutableJeffrey ImmutableJeffrey commented Aug 7, 2025

Copy link
Copy Markdown
Contributor

Hi👋, please ensure the PR title follows the below standards:

  • PR is titled with conventional commit style naming: type(scope): message. For example: feat(passport): my new feature
  • If you have introduced modification that necessitates immediate adjustments by this SDK's users to their applications, clients, or integrations to avert disruptions to existing features or functionalities, add a ! after the type(scope), for example feat(passport)!: my new breaking feature

Summary

Refactor direct login method from direct login method to direct login options

Jira: ID-3896

Detail and impact of the change

Added

Changed

Deprecated

Removed

Fixed

Security

Anything else worth calling out?

@ImmutableJeffrey ImmutableJeffrey requested review from a team as code owners August 7, 2025 22:56
@nx-cloud

nx-cloud Bot commented Aug 7, 2025

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit 6d98e14

Command Status Duration Result
nx affected -t build,lint,test ✅ Succeeded 3m 5s View ↗
nx run-many -p @imtbl/sdk,@imtbl/checkout-widge... ✅ Succeeded 1m 18s View ↗

☁️ Nx Cloud last updated this comment at 2025-08-07 23:10:28 UTC

* Note: This takes precedence over useCachedSession if both are true
* @param {boolean} [options.useRedirectFlow] - If true, uses redirect flow instead of popup flow
* @param {DirectLoginMethod} [options.directLoginMethod] - If provided, directly redirects to the specified login method
* @param {DirectLoginOptions} [options.directLoginOptions] - Type-safe login options. For email login, use { method: 'email', email: 'user@example.com' }. For social login, use { method: 'google' } etc.

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.

I wouldn't comment on the options being type-safe, it makes the comment seem like it was written by an LLM 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants