-
Notifications
You must be signed in to change notification settings - Fork 260
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
chore(backend): Expose AuthObject
type
#3844
chore(backend): Expose AuthObject
type
#3844
Conversation
…AuthObject, SignedOutAuthObject, and AuthObject type definitions in favour of exporting from @clerk/types
…ject, SignedOutAuthObject, and AuthObject type definitions to token.ts * Mark AuthObjectDebugData, AuthObjectDebug, SignedInAuthObject, SignedOutAuthObject as internal types
…ve export from internal.ts of removed types
🦋 Changeset detectedLatest commit: 91995d6 The changes in this PR will be included in the next version bump. This PR includes changesets to release 9 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AuthObject
type
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
☁️ I think that this kind of change should be a minor since we are adding a new export.
SignedOutAuthObject, | ||
AuthObject, | ||
} from './tokens/authObjects'; | ||
export type { SignedInAuthObjectOptions, SignedInAuthObject, SignedOutAuthObject } from './tokens/authObjects'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔧 This change will break existing application importing from /internal
. Even though they should not use it, should we keep it and add a deprecation warning to remove it later?
cc: @nikosdouvlis
Description
This PR moves the AuthObjectDebugData, AuthObjectDebug, SignedInAuthObject, SignedOutAuthObject, and AuthObject type definitions in favour of exporting from @clerk/types. This is to enable clients to easily access this object type across our JavaScript SDKs.
https://linear.app/clerk/issue/SDK-1894/export-authobject-as-requested-by-client-in-clerktypes-package
Checklist
npm test
runs as expected.npm run build
runs as expected.Type of change