@@ -92,7 +92,7 @@ const turnkeyClient = new TurnkeyServerSDK({
92
92
} ) ;
93
93
94
94
export async function sendCredential (
95
- request : InitEmailAuthRequest
95
+ request : InitEmailAuthRequest ,
96
96
) : Promise < void > {
97
97
try {
98
98
const response = await turnkeyClient . apiClient ( ) . emailAuth ( {
@@ -117,7 +117,7 @@ export async function sendCredential(
117
117
}
118
118
119
119
export async function sendOtp (
120
- request : SendOtpRequest
120
+ request : SendOtpRequest ,
121
121
) : Promise < SendOtpResponse | undefined > {
122
122
try {
123
123
const response = await turnkeyClient . apiClient ( ) . initOtpAuth ( {
@@ -140,7 +140,7 @@ export async function sendOtp(
140
140
}
141
141
142
142
export async function verifyOtp (
143
- request : VerifyOtpRequest
143
+ request : VerifyOtpRequest ,
144
144
) : Promise < Session | undefined > {
145
145
try {
146
146
const response = await turnkeyClient . apiClient ( ) . otpAuth ( {
@@ -156,7 +156,7 @@ export async function verifyOtp(
156
156
const { credentialBundle, apiKeyId, userId } = response ;
157
157
if ( ! credentialBundle || ! apiKeyId || ! userId ) {
158
158
throw new Error (
159
- "Expected non-null values for credentialBundle, apiKeyId, and userId."
159
+ "Expected non-null values for credentialBundle, apiKeyId, and userId." ,
160
160
) ;
161
161
}
162
162
const session : Session = {
@@ -175,7 +175,7 @@ export async function verifyOtp(
175
175
}
176
176
177
177
export async function oauth (
178
- request : OauthRequest
178
+ request : OauthRequest ,
179
179
) : Promise < Session | undefined > {
180
180
try {
181
181
const response = await turnkeyClient . apiClient ( ) . oauth ( {
@@ -190,7 +190,7 @@ export async function oauth(
190
190
const { credentialBundle, apiKeyId, userId } = response ;
191
191
if ( ! credentialBundle || ! apiKeyId || ! userId ) {
192
192
throw new Error (
193
- "Expected non-null values for credentialBundle, apiKeyId, and userId."
193
+ "Expected non-null values for credentialBundle, apiKeyId, and userId." ,
194
194
) ;
195
195
}
196
196
const session : Session = {
@@ -209,7 +209,7 @@ export async function oauth(
209
209
}
210
210
211
211
export async function getSuborgs (
212
- request : GetSuborgsRequest
212
+ request : GetSuborgsRequest ,
213
213
) : Promise < GetSuborgsResponse | undefined > {
214
214
try {
215
215
const response = await turnkeyClient . apiClient ( ) . getSubOrgIds ( {
@@ -229,7 +229,7 @@ export async function getSuborgs(
229
229
}
230
230
231
231
export async function getVerifiedSuborgs (
232
- request : GetSuborgsRequest
232
+ request : GetSuborgsRequest ,
233
233
) : Promise < GetSuborgsResponse | undefined > {
234
234
try {
235
235
const response = await turnkeyClient . apiClient ( ) . getVerifiedSubOrgIds ( {
@@ -249,7 +249,7 @@ export async function getVerifiedSuborgs(
249
249
}
250
250
251
251
export async function createSuborg (
252
- request : CreateSuborgRequest
252
+ request : CreateSuborgRequest ,
253
253
) : Promise < CreateSuborgResponse | undefined > {
254
254
try {
255
255
const response = await turnkeyClient . apiClient ( ) . createSubOrganization ( {
0 commit comments