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.
An interface to work with authorized users within a
DiscordOAuth2Server. Allows retrieving details once
a user completes an authorization code grant request.-
Method Summary
Modifier and TypeMethodDescriptionMono<?>onAuthSuccess(DiscordOAuth2Client client, String sessionId) Invoked once a user completes an authorization code grant request for your OAuth2 application.
-
Method Details
-
onAuthSuccess
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
-