Skip to content

Commit f6a7d9d

Browse files
committed
chore: prettify server actions
1 parent c1536f9 commit f6a7d9d

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

packages/sdk-server/src/actions.ts

+9-9
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ const turnkeyClient = new TurnkeyServerSDK({
9292
});
9393

9494
export async function sendCredential(
95-
request: InitEmailAuthRequest
95+
request: InitEmailAuthRequest,
9696
): Promise<void> {
9797
try {
9898
const response = await turnkeyClient.apiClient().emailAuth({
@@ -117,7 +117,7 @@ export async function sendCredential(
117117
}
118118

119119
export async function sendOtp(
120-
request: SendOtpRequest
120+
request: SendOtpRequest,
121121
): Promise<SendOtpResponse | undefined> {
122122
try {
123123
const response = await turnkeyClient.apiClient().initOtpAuth({
@@ -140,7 +140,7 @@ export async function sendOtp(
140140
}
141141

142142
export async function verifyOtp(
143-
request: VerifyOtpRequest
143+
request: VerifyOtpRequest,
144144
): Promise<Session | undefined> {
145145
try {
146146
const response = await turnkeyClient.apiClient().otpAuth({
@@ -156,7 +156,7 @@ export async function verifyOtp(
156156
const { credentialBundle, apiKeyId, userId } = response;
157157
if (!credentialBundle || !apiKeyId || !userId) {
158158
throw new Error(
159-
"Expected non-null values for credentialBundle, apiKeyId, and userId."
159+
"Expected non-null values for credentialBundle, apiKeyId, and userId.",
160160
);
161161
}
162162
const session: Session = {
@@ -175,7 +175,7 @@ export async function verifyOtp(
175175
}
176176

177177
export async function oauth(
178-
request: OauthRequest
178+
request: OauthRequest,
179179
): Promise<Session | undefined> {
180180
try {
181181
const response = await turnkeyClient.apiClient().oauth({
@@ -190,7 +190,7 @@ export async function oauth(
190190
const { credentialBundle, apiKeyId, userId } = response;
191191
if (!credentialBundle || !apiKeyId || !userId) {
192192
throw new Error(
193-
"Expected non-null values for credentialBundle, apiKeyId, and userId."
193+
"Expected non-null values for credentialBundle, apiKeyId, and userId.",
194194
);
195195
}
196196
const session: Session = {
@@ -209,7 +209,7 @@ export async function oauth(
209209
}
210210

211211
export async function getSuborgs(
212-
request: GetSuborgsRequest
212+
request: GetSuborgsRequest,
213213
): Promise<GetSuborgsResponse | undefined> {
214214
try {
215215
const response = await turnkeyClient.apiClient().getSubOrgIds({
@@ -229,7 +229,7 @@ export async function getSuborgs(
229229
}
230230

231231
export async function getVerifiedSuborgs(
232-
request: GetSuborgsRequest
232+
request: GetSuborgsRequest,
233233
): Promise<GetSuborgsResponse | undefined> {
234234
try {
235235
const response = await turnkeyClient.apiClient().getVerifiedSubOrgIds({
@@ -249,7 +249,7 @@ export async function getVerifiedSuborgs(
249249
}
250250

251251
export async function createSuborg(
252-
request: CreateSuborgRequest
252+
request: CreateSuborgRequest,
253253
): Promise<CreateSuborgResponse | undefined> {
254254
try {
255255
const response = await turnkeyClient.apiClient().createSubOrganization({

0 commit comments

Comments
 (0)