# AuthProvider

interface AuthProvider

## Types

Companion
Link copied to clipboard
object Companion
LoginCallback
Link copied to clipboard
interface LoginCallback
LogoutCallback
Link copied to clipboard
interface LogoutCallback
WithdrawCallback
Link copied to clipboard
interface WithdrawCallback

## Functions

getAccessToken
Link copied to clipboard
abstract fun getAccessToken(): String?
getAdapterVersion
Link copied to clipboard
abstract fun getAdapterVersion(): String
getInitializeResult
Link copied to clipboard
abstract fun getInitializeResult(): GamebaseException?
getProfile
Link copied to clipboard
abstract fun getProfile(): AuthProviderProfile?
getProviderName
Link copied to clipboard
abstract fun getProviderName(): String
getUserId
Link copied to clipboard
abstract fun getUserId(): String?
initialize
Link copied to clipboard
abstract fun initialize(activity: Activity, authProviderConfiguration: AuthProviderConfiguration)
isSupportLoginForLastLoggedInProvider
Link copied to clipboard
abstract fun isSupportLoginForLastLoggedInProvider(): Boolean
login
Link copied to clipboard
abstract fun login(activity: Activity, authProviderConfiguration: AuthProviderConfiguration, callback: AuthProvider.LoginCallback?)

login to this idp

logout
Link copied to clipboard
abstract fun logout(activity: Activity?, callback: AuthProvider.LogoutCallback?)
onActivityResult
Link copied to clipboard
abstract fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?)
withdraw
Link copied to clipboard
abstract fun withdraw(activity: Activity, callback: AuthProvider.WithdrawCallback?)