Package discord4j.oauth2
Interface DiscordOAuth2SuccessHandler
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface DiscordOAuth2SuccessHandler
An interface to work with authorized users within aDiscordOAuth2Server
. Allows retrieving details once a user completes an authorization code grant request.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Mono<?>
onAuthSuccess(DiscordOAuth2Client client, String sessionId)
Invoked once a user completes an authorization code grant request for your OAuth2 application.
-
-
-
Method Detail
-
onAuthSuccess
Mono<?> onAuthSuccess(DiscordOAuth2Client client, String sessionId)
Invoked once a user completes an authorization code grant request for your OAuth2 application.- Parameters:
client
- the authorized user client registration, allowing to perform API request on behalf of this usersessionId
- a session identifier used by the server- Returns:
- a Mono signaling completion of the success handler, errors thrown are logged and discarded by the server
-
-