Skip to content

Commit 55d92f6

Browse files
committed
update comment
1 parent 0c7634a commit 55d92f6

File tree

1 file changed

+2
-0
lines changed
  • aws-auth-cognito/src/main/java/com/amplifyframework/statemachine/codegen/data

1 file changed

+2
-0
lines changed

aws-auth-cognito/src/main/java/com/amplifyframework/statemachine/codegen/data/Tokens.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ internal data class CognitoUserPoolTokens(
154154

155155
/**
156156
* Helper function to extract token value from either flat or nested format
157+
* commit 047483866231622a362f736350f600072affad86 unintentionally introduced a token serialization/deserialization
158+
* change causing logouts. This method ensures tokens are readable in a flat string format, or nested object.
157159
*/
158160
private fun extractTokenValue(decoder: Decoder, tokenType: String): String = if (decoder is JsonDecoder) {
159161
when (val element = decoder.decodeJsonElement()) {

0 commit comments

Comments
 (0)