Skip to content

Commit b47c8fd

Browse files
committed
REFRESH_TOKEN key
1 parent eea5d06 commit b47c8fd

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

amplifyframework/src/commonMain/kotlin/com/jump/sdk/amplifyframework/CognitoException.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
package com.jump.sdk.amplifyframework
22

3-
sealed class CognitoException(
4-
override val message: String,
5-
) : Exception(message) {
3+
sealed class CognitoException(override val message: String) : Exception(message) {
64
data object BadSrpB : CognitoException("Bad server public value 'B'")
75
data object HashOfAAndSrpBCannotBeZero : CognitoException("Hash of A and B cannot be zero")
86
data object UserPoolNameNotSet : CognitoException("Must call setUserPoolParams() before this")

amplifyframework/src/commonMain/kotlin/com/jump/sdk/amplifyframework/CognitoKeys.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ object CognitoKeys {
2121
const val PASSWORD_CLAIM_SECRET_BLOCK = "PASSWORD_CLAIM_SECRET_BLOCK"
2222
const val PASSWORD_CLAIM_SIGNATURE = "PASSWORD_CLAIM_SIGNATURE"
2323
const val PASSWORD_VERIFIER = "PASSWORD_VERIFIER"
24+
const val REFRESH_TOKEN = "REFRESH_TOKEN"
2425
const val SALT = "SALT"
2526
const val SECRET_BLOCK = "SECRET_BLOCK"
2627
const val SECRET_HASH = "SECRET_HASH"

amplifyframework/src/commonMain/kotlin/com/jump/sdk/amplifyframework/SRPHelper.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ class SRPHelper(private val password: String) {
169169
* and secret block to create a secure signature for authentication.
170170
*
171171
* The parameters are returned from calling AWSCognitoIdentityProviderService.InitiateAuth
172-
* Note the you MUST call setUserPoolParams() before calling this function or it will throw
173-
* a CognitoException.
172+
* Note that you MUST call setUserPoolParams() before calling this function or it will throw
173+
* a [CognitoException].
174174
*
175175
* @param salt The salt value used in the authentication process.
176176
* @param srpB The SRP_B value provided by the Cognito service.

0 commit comments

Comments
 (0)