Skip to main content

CredentialManager

If you want to use credential-manager to store/read OAuth2 tokens (or directly utilize an AuthenticationController instance), you can build a CredentialManager yourself, and pass it to the builder via the .withCredentialManager(credentialManager) method.

tip

Most users do not need to manually create a CredentialManager, and can ignore this page.

Register the twitch identity provider using the AuthModule

CredentialManager credentialManager = CredentialManagerBuilder.builder().build();
TwitchAuth.registerIdentityProvider(credentialManager, "your-client-id", "your-client-secret", "your-redirect-url");

Register the twitch identity provider manually

CredentialManager credentialManager = CredentialManagerBuilder.builder().build();
credentialManager.registerIdentityProvider(new TwitchIdentityProvider("jzkbprff40iqj646a697cyrvl0zt2m6", "**SECRET**", ""));