Skip to content
Open
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 @@ -119,7 +119,7 @@ class FronteggRNModule(val reactContext: ReactApplicationContext) :

@ReactMethod
fun login(loginHint: String?, promise: Promise) {
val activity = currentActivity
val activity = reactApplicationContext.currentActivity
auth.login(activity!!, loginHint) {
promise.resolve("")
}
Expand All @@ -134,7 +134,7 @@ class FronteggRNModule(val reactContext: ReactApplicationContext) :

@ReactMethod
fun directLoginAction(type: String, data: String, ephemeralSession: Boolean, promise: Promise) {
val activity = currentActivity
val activity = reactApplicationContext.currentActivity
auth.directLoginAction(activity!!, type, data)
promise.resolve(true)
}
Expand All @@ -147,7 +147,7 @@ class FronteggRNModule(val reactContext: ReactApplicationContext) :

@ReactMethod
fun loginWithPasskeys(promise: Promise) {
val activity = currentActivity
val activity = reactApplicationContext.currentActivity
auth.loginWithPasskeys(activity!!) { error ->
if (error != null) {
promise.reject(error)
Expand Down Expand Up @@ -179,7 +179,7 @@ class FronteggRNModule(val reactContext: ReactApplicationContext) :

@ReactMethod
fun registerPasskeys(promise: Promise) {
val activity = currentActivity
val activity = reactApplicationContext.currentActivity
auth.registerPasskeys(activity!!) { error ->
if (error != null) {
promise.reject(error)
Expand Down
Loading