Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Signs out users from all devices. It also invalidates all refresh tokens that Amazon Cognito has issued to a user. A user can still use a hosted UI cookie to retrieve new tokens for the duration of the 1-hour cookie validity period.
Synopsis
- data GlobalSignOut = GlobalSignOut' {}
- newGlobalSignOut :: Text -> GlobalSignOut
- globalSignOut_accessToken :: Lens' GlobalSignOut Text
- data GlobalSignOutResponse = GlobalSignOutResponse' {
- httpStatus :: Int
- newGlobalSignOutResponse :: Int -> GlobalSignOutResponse
- globalSignOutResponse_httpStatus :: Lens' GlobalSignOutResponse Int
Creating a Request
data GlobalSignOut Source #
Represents the request to sign out all devices.
See: newGlobalSignOut
smart constructor.
GlobalSignOut' | |
|
Instances
Create a value of GlobalSignOut
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
GlobalSignOut
, globalSignOut_accessToken
- A valid access token that Amazon Cognito issued to the user who you want
to sign out.
Request Lenses
globalSignOut_accessToken :: Lens' GlobalSignOut Text Source #
A valid access token that Amazon Cognito issued to the user who you want to sign out.
Destructuring the Response
data GlobalSignOutResponse Source #
The response to the request to sign out all devices.
See: newGlobalSignOutResponse
smart constructor.
GlobalSignOutResponse' | |
|
Instances
newGlobalSignOutResponse Source #
Create a value of GlobalSignOutResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:GlobalSignOutResponse'
, globalSignOutResponse_httpStatus
- The response's http status code.
Response Lenses
globalSignOutResponse_httpStatus :: Lens' GlobalSignOutResponse Int Source #
The response's http status code.