File tree Expand file tree Collapse file tree
sdk/src/main/java/com/oursky/authgear Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ package com.oursky.authgear
2+
3+ import kotlinx.serialization.SerialName
4+ import kotlinx.serialization.Serializable
5+
6+ @Serializable
7+ data class Authenticator (
8+ @SerialName(" created_at" )
9+ val createdAt : String ,
10+ @SerialName(" updated_at" )
11+ val updatedAt : String ,
12+ val type : AuthenticatorType ,
13+ val kind : AuthenticatorKind
14+ )
Original file line number Diff line number Diff line change 1+ package com.oursky.authgear
2+
3+ import kotlinx.serialization.SerialName
4+ import kotlinx.serialization.Serializable
5+
6+ @Serializable
7+ enum class AuthenticatorKind {
8+ @SerialName(" primary" )
9+ PRIMARY ,
10+ @SerialName(" secondary" )
11+ SECONDARY
12+ }
Original file line number Diff line number Diff line change 1+ package com.oursky.authgear
2+
3+ import kotlinx.serialization.SerialName
4+ import kotlinx.serialization.Serializable
5+
6+ @Serializable
7+ enum class AuthenticatorType {
8+ @SerialName(" password" )
9+ PASSWORD ,
10+ @SerialName(" oob_otp_email" )
11+ OOB_OTP_EMAIL ,
12+ @SerialName(" oob_otp_sms" )
13+ OOB_OTP_SMS ,
14+ @SerialName(" totp" )
15+ TOTP
16+ }
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ data class UserInfo(
1313 val isAnonymous : Boolean ,
1414 @SerialName(" https://authgear.com/claims/user/can_reauthenticate" )
1515 val canReauthenticate : Boolean ,
16+ @SerialName(" https://authgear.com/claims/user/recovery_code_enabled" )
17+ val recoveryCodeEnabled : Boolean? = null ,
1618 @SerialName(" https://authgear.com/claims/user/roles" )
1719 val roles : Array <String >? = null ,
1820 @SerialName(" custom_attributes" )
@@ -41,5 +43,7 @@ data class UserInfo(
4143 val birthdate : String? = null ,
4244 val zoneinfo : String? = null ,
4345 val locale : String? = null ,
44- val address : UserInfoAddress ? = null
46+ val address : UserInfoAddress ? = null ,
47+ @SerialName(" https://authgear.com/claims/user/authenticators" )
48+ val authenticators : List <Authenticator >? = null
4549)
You can’t perform that action at this time.
0 commit comments