File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
AmplifyPlugins/Auth/AWSCognitoAuthPluginIntegrationTests/Support Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,14 @@ struct AuthSessionHelper {
25
25
// Please note that the clientId + username namespace combination is
26
26
// normalized by converting it to a lower-case string somewhere upstream
27
27
// of the AWSUICKeyChainStore. So, the same is done below.
28
- let namespace = " \( clientId) . \( username) " . lowercased ( )
28
+ let namespace = " \( clientId) . \( username) "
29
+ invalidateSession ( keychain: keychain, namespace: namespace)
30
+
31
+ let namespaceNormalized = namespace. lowercased ( )
32
+ invalidateSession ( keychain: keychain, namespace: namespaceNormalized)
33
+ }
34
+
35
+ private static func invalidateSession( keychain: AWSUICKeyChainStore , namespace: String ) {
29
36
let expirationKey = " \( namespace) .tokenExpiration "
30
37
let refreshTokenKey = " \( namespace) .refreshToken "
31
38
You can’t perform that action at this time.
0 commit comments