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 |
Refreshes a previously issued access token that might have expired.
Synopsis
- data RefreshToken = RefreshToken' {}
- newRefreshToken :: TokenProviders -> RefreshTokenRequestBody -> RefreshToken
- refreshToken_provider :: Lens' RefreshToken TokenProviders
- refreshToken_refreshTokenBody :: Lens' RefreshToken RefreshTokenRequestBody
- data RefreshTokenResponse = RefreshTokenResponse' {
- httpStatus :: Int
- accessToken :: Sensitive Text
- expiresIn :: Int
- newRefreshTokenResponse :: Int -> Text -> Int -> RefreshTokenResponse
- refreshTokenResponse_httpStatus :: Lens' RefreshTokenResponse Int
- refreshTokenResponse_accessToken :: Lens' RefreshTokenResponse Text
- refreshTokenResponse_expiresIn :: Lens' RefreshTokenResponse Int
Creating a Request
data RefreshToken Source #
See: newRefreshToken
smart constructor.
RefreshToken' | |
|
Instances
Create a value of RefreshToken
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:provider:RefreshToken'
, refreshToken_provider
- The third-party provider for the token. The only valid value is figma
.
$sel:refreshTokenBody:RefreshToken'
, refreshToken_refreshTokenBody
- Information about the refresh token request.
Request Lenses
refreshToken_provider :: Lens' RefreshToken TokenProviders Source #
The third-party provider for the token. The only valid value is figma
.
refreshToken_refreshTokenBody :: Lens' RefreshToken RefreshTokenRequestBody Source #
Information about the refresh token request.
Destructuring the Response
data RefreshTokenResponse Source #
See: newRefreshTokenResponse
smart constructor.
RefreshTokenResponse' | |
|
Instances
newRefreshTokenResponse Source #
:: Int | |
-> Text | |
-> Int | |
-> RefreshTokenResponse |
Create a value of RefreshTokenResponse
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:RefreshTokenResponse'
, refreshTokenResponse_httpStatus
- The response's http status code.
$sel:accessToken:RefreshTokenResponse'
, refreshTokenResponse_accessToken
- The access token.
$sel:expiresIn:RefreshTokenResponse'
, refreshTokenResponse_expiresIn
- The date and time when the new access token expires.
Response Lenses
refreshTokenResponse_httpStatus :: Lens' RefreshTokenResponse Int Source #
The response's http status code.
refreshTokenResponse_accessToken :: Lens' RefreshTokenResponse Text Source #
The access token.
refreshTokenResponse_expiresIn :: Lens' RefreshTokenResponse Int Source #
The date and time when the new access token expires.