Skip to content

Use SDK version 1.0.0-beta-1 #52

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

Open
wants to merge 1 commit into
base: add-mfa-app-adam
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies {
if (project.hasProperty("sdkVersion")) {
implementation("com.workos:workos:${project.property("sdkVersion")}")
} else {
implementation("com.workos:workos:1.0.0-beta-0")
implementation("com.workos:workos:1.0.0-beta-1")
}

implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.13.0")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public Context directories(Context ctx) {
String before = ctx.queryParam("before");
String deleteResult = ctx.queryParam("deleteResult");

PaginationParams.Builder paginationParams = PaginationParams.builder();
PaginationParams.PaginationParamsBuilder paginationParams = PaginationParams.builder();

if (after != null) {
paginationParams.after(after);
Expand Down Expand Up @@ -83,7 +83,7 @@ public Context directoryUsers(Context ctx) {
String after = ctx.queryParam("after");
String before = ctx.queryParam("before");

ListDirectoryUserOptions.Builder options = ListDirectoryUserOptions.builder()
ListDirectoryUserOptions.ListDirectoryUserOptionsBuilder options = ListDirectoryUserOptions.builder()
.directory(directoryId);

if (after != null) {
Expand Down Expand Up @@ -131,7 +131,7 @@ public Context directoryGroups(Context ctx) {
String after = ctx.queryParam("after");
String before = ctx.queryParam("before");

ListDirectoryGroupOptions.Builder options = ListDirectoryGroupOptions.builder()
ListDirectoryGroupOptions.ListDirectoryGroupOptionsBuilder options = ListDirectoryGroupOptions.builder()
.directory(directoryId);

if (after != null) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
package com.workos.java.examples;

import com.workos.WorkOS;
import com.workos.common.exceptions.UnprocessableEntityException;
import com.workos.common.http.UnprocessableEntityExceptionResponse.EntityError;
import com.workos.passwordless.PasswordlessApi.CreateSessionOptions;
import com.workos.passwordless.models.PasswordlessSession;
import com.workos.sso.models.ProfileAndToken;
import io.javalin.Javalin;
import io.javalin.http.Context;
import java.util.Collections;
import java.util.List;
import java.util.Map;

public class MagicLinkApp {
Expand Down