Skip to content

Commit 14b296a

Browse files
Merge pull request #32 from Web3Auth/feat/id_token
Return new parameters
2 parents 6a0aae4 + c9f0920 commit 14b296a

File tree

10 files changed

+32
-18
lines changed

10 files changed

+32
-18
lines changed

.idea/gradle.xml

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ data class Web3AuthOptions(
166166

167167
data class LoginParams(
168168
val loginProvider: Provider,
169-
val reLogin: Boolean? = null,
170169
val skipTKey: Boolean? = null,
171170
val extraLoginOptions: ExtraLoginOptions? = null,
172171
val redirectUrl: Uri? = null,

app/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,16 @@ android {
4848
dependencies {
4949
// Default
5050
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
51-
implementation 'androidx.core:core-ktx:1.7.0'
52-
implementation 'androidx.appcompat:appcompat:1.4.1'
53-
implementation 'com.google.android.material:material:1.5.0'
54-
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
51+
implementation 'androidx.core:core-ktx:1.8.0'
52+
implementation 'androidx.appcompat:appcompat:1.4.2'
53+
implementation 'com.google.android.material:material:1.6.1'
54+
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
5555

5656
// Completable Futures support
5757
implementation 'net.sourceforge.streamsupport:streamsupport-cfuture:1.7.4'
5858

5959
// Encoding
60-
implementation 'com.google.code.gson:gson:2.8.9'
60+
implementation 'com.google.code.gson:gson:2.9.0'
6161

6262
// Web3Auth
6363
implementation project(":core")

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
buildscript {
2-
ext.kotlin_version = "1.6.0"
2+
ext.kotlin_version = "1.7.10"
33
repositories {
44
google()
55
mavenCentral()
66
}
77
dependencies {
8-
classpath 'com.android.tools.build:gradle:7.1.2'
8+
classpath 'com.android.tools.build:gradle:7.2.1'
99
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1010
}
1111
}

core/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ android {
3434
dependencies {
3535
// Default
3636
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
37-
implementation 'androidx.core:core-ktx:1.7.0'
38-
implementation 'androidx.appcompat:appcompat:1.4.1'
37+
implementation 'androidx.core:core-ktx:1.8.0'
38+
implementation 'androidx.appcompat:appcompat:1.4.2'
3939

4040
// Completable Futures support
4141
implementation 'net.sourceforge.streamsupport:streamsupport-cfuture:1.7.4'
@@ -44,7 +44,7 @@ dependencies {
4444
implementation 'androidx.browser:browser:1.4.0'
4545

4646
// Encoding
47-
implementation 'com.google.code.gson:gson:2.8.9'
47+
implementation 'com.google.code.gson:gson:2.9.0'
4848

4949
// Test
5050
testImplementation 'junit:junit:4.+'
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package com.web3auth.core.types
2+
3+
import com.google.gson.annotations.SerializedName
4+
5+
enum class Curve {
6+
@SerializedName("secp256k1")
7+
SECP256K1,
8+
@SerializedName("ed25519")
9+
ED25519
10+
}

core/src/main/java/com/web3auth/core/types/LoginParams.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ import com.web3auth.core.Web3Auth
55

66
data class LoginParams (
77
val loginProvider: Provider,
8-
val relogin: Boolean? = null,
98
val dappShare: String? = null,
109
val extraLoginOptions: ExtraLoginOptions? = null,
1110
val redirectUrl: Uri? = null,
1211
val appState: String? = null,
13-
val mfaLevel: MFALevel? = null
12+
val mfaLevel: MFALevel? = null,
13+
val sessionTime: Int? = null,
14+
val curve: Curve? = null
1415
)

core/src/main/java/com/web3auth/core/types/UserInfo.kt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,16 @@ package com.web3auth.core.types
33
import androidx.annotation.Keep
44

55
@Keep
6-
data class UserInfo (var email: String = "",
6+
data class UserInfo (
7+
var email: String = "",
78
var name: String = "",
89
var profileImage: String = "",
910
var aggregateVerifier: String = "",
1011
var verifier: String = "",
1112
var verifierId: String = "",
1213
var typeOfLogin: String = "",
13-
var dappShare: String = ""
14+
var dappShare: String = "",
15+
var idToken: String = "",
16+
var oAuthIdToken: String = "",
17+
var oAuthAccessToken: String = ""
1418
)

core/src/main/java/com/web3auth/core/types/Web3AuthResponse.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ data class Web3AuthResponse(
77
val privKey: String? = null,
88
val ed25519PrivKey: String? = null,
99
val userInfo: UserInfo? = null,
10-
val error: String? = null
10+
val error: String? = null,
11+
val sessionId: String? = null
1112
)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Mon Nov 22 12:32:04 SGT 2021
22
distributionBase=GRADLE_USER_HOME
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
44
distributionPath=wrapper/dists
55
zipStorePath=wrapper/dists
66
zipStoreBase=GRADLE_USER_HOME

0 commit comments

Comments
 (0)