File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed
amplifyframework/src/commonMain/kotlin/com/jump/sdk/amplifyframework Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 11package 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" )
Original file line number Diff line number Diff 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"
Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments