Skip to content

Commit f500680

Browse files
authored
fix(auth): Fix Authorization header for HostedUI fetchToken when appSecret is used (#2264)
1 parent 48cb1a3 commit f500680

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aws-auth-cognito/src/main/java/com/amplifyframework/auth/cognito/HostedUIClient.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ internal class HostedUIClient private constructor(
181181
if (configuration.appSecret != null) {
182182
put(
183183
"Authorization",
184-
PkceHelper.encodeBase64("${configuration.appClient}:${configuration.appSecret}")
184+
"Basic ${PkceHelper.encodeBase64("${configuration.appClient}:${configuration.appSecret}")}"
185185
)
186186
}
187187
}

0 commit comments

Comments
 (0)