Skip to content

Commit

Permalink
Merge branch 'main' into haris/user-562-support-connecting-coinbase-w…
Browse files Browse the repository at this point in the history
…allet-on-userprofile-types
  • Loading branch information
LekoArts authored Aug 27, 2024
2 parents f38818e + c3adac0 commit a563280
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/calm-rabbits-talk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@clerk/clerk-js": patch
---

Remove sessionId parameter from all **experimental** verify session methods.
10 changes: 5 additions & 5 deletions packages/clerk-js/src/core/resources/User.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ export class User extends BaseResource implements UserResource {
const json = (
await BaseResource._fetch({
method: 'POST',
path: `/me/sessions/${User.clerk.session?.id}/verify`,
path: `/me/sessions/verify`,
body: {
level,
maxAge,
Expand Down Expand Up @@ -289,7 +289,7 @@ export class User extends BaseResource implements UserResource {
const json = (
await BaseResource._fetch({
method: 'POST',
path: `/me/sessions/${User.clerk.session?.id}/verify/prepare_first_factor`,
path: `/me/sessions/verify/prepare_first_factor`,
body: {
...config,
strategy: factor.strategy,
Expand All @@ -306,7 +306,7 @@ export class User extends BaseResource implements UserResource {
const json = (
await BaseResource._fetch({
method: 'POST',
path: `/me/sessions/${User.clerk.session?.id}/verify/attempt_first_factor`,
path: `/me/sessions/verify/attempt_first_factor`,
body: { ...attemptFactor, strategy: attemptFactor.strategy } as any,
})
)?.response as unknown as __experimental_SessionVerificationJSON;
Expand All @@ -320,7 +320,7 @@ export class User extends BaseResource implements UserResource {
const json = (
await BaseResource._fetch({
method: 'POST',
path: `/me/sessions/${User.clerk.session?.id}/verify/prepare_second_factor`,
path: `/me/sessions/verify/prepare_second_factor`,
body: params as any,
})
)?.response as unknown as __experimental_SessionVerificationJSON;
Expand All @@ -334,7 +334,7 @@ export class User extends BaseResource implements UserResource {
const json = (
await BaseResource._fetch({
method: 'POST',
path: `/me/sessions/${User.clerk.session?.id}/verify/attempt_second_factor`,
path: `/me/sessions/verify/attempt_second_factor`,
body: params as any,
})
)?.response as unknown as __experimental_SessionVerificationJSON;
Expand Down

0 comments on commit a563280

Please sign in to comment.