Skip to content

Commit d626dac

Browse files
committed
Fix a warning around the unimplemented refresh token exception.
1 parent 4771e08 commit d626dac

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Sources/App/Controllers/Manage/SessionAuthentication.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ struct UserSessionAuthenticator: AsyncSessionAuthenticator {
2020
do {
2121
try await cognito.authenticateToken(req: request, sessionID: sessionID, accessToken: sessionID)
2222
request.auth.login(User(accessToken: sessionID))
23-
} catch let error as SotoCognitoError {
24-
// .unauthorized SotoCognitoError with reason "invalid token", attempt to refresh using req.application.cognito.authenticatable.refresh(), which requires the username and refresh token, both returned upon initial successful login
23+
} catch _ as SotoCognitoError {
24+
// TODO: .unauthorized SotoCognitoError with reason "invalid token", attempt to refresh using
25+
// req.application.cognito.authenticatable.refresh(), which requires the username and refresh
26+
// token, both returned upon initial successful login.
2527
}
2628
}
2729
typealias User = AuthenticatedUser

0 commit comments

Comments
 (0)