-
Notifications
You must be signed in to change notification settings - Fork 282
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(elements): Add support for signOutOfOtherSessions checkbox (#3791)
- Loading branch information
1 parent
d465d70
commit 195fd46
Showing
6 changed files
with
39 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@clerk/elements": patch | ||
--- | ||
|
||
Add support for checkbox input usage and `signOutOfOtherSessions` functionality |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,9 +3,9 @@ import { fieldsToSignUpParams } from '../fields-to-params'; | |
describe('fieldsToSignUpParams', () => { | ||
it('converts form fields to sign up params', () => { | ||
const fields = new Map([ | ||
['firstName', { value: 'John' }], | ||
['emailAddress', { value: '[email protected]' }], | ||
['password', { value: 'password123' }], | ||
['firstName', { type: 'text', value: 'John' }], | ||
['emailAddress', { type: 'text', value: '[email protected]' }], | ||
['password', { type: 'text', value: 'password123' }], | ||
]); | ||
|
||
const params = fieldsToSignUpParams(fields); | ||
|
@@ -19,9 +19,9 @@ describe('fieldsToSignUpParams', () => { | |
|
||
it('ignores undefined values', () => { | ||
const fields = new Map([ | ||
['firstName', { value: 'John' }], | ||
['emailAddress', { value: undefined }], | ||
['password', { value: 'password123' }], | ||
['firstName', { type: 'text', value: 'John' }], | ||
['emailAddress', { type: 'text', value: undefined }], | ||
['password', { type: 'text', value: 'password123' }], | ||
]); | ||
|
||
const params = fieldsToSignUpParams(fields); | ||
|
@@ -34,9 +34,9 @@ describe('fieldsToSignUpParams', () => { | |
|
||
it('ignores non-sign-up keys', () => { | ||
const fields = new Map([ | ||
['firstName', { value: 'John' }], | ||
['foo', { value: 'bar' }], | ||
['bar', { value: 'foo' }], | ||
['firstName', { type: 'text', value: 'John' }], | ||
['foo', { type: 'text', value: 'bar' }], | ||
['bar', { type: 'text', value: 'foo' }], | ||
]); | ||
|
||
const params = fieldsToSignUpParams(fields); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters