FortniteAuth class Null safety

fortnite auth library

Constructors

FortniteAuth(Client _client)

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

createClientAccessToken({required String authClient}) Future<String>
creates any client token by exchange code. get a client from AuthClients and pass that to authClient parameter.
createDeviceAuth() Future<DeviceAuth>
creates a DeviceAuth object. a device auth is valid until its forcefully deleted or account password is changed.
createExchangeCode() Future<String>
creates an exchange code to authenticate with the fortnite api. an exchange code is valid only for 30 seconds. an exchange code can be used to launch game/ perform any action on account.
createOAuthToken({required String grantType, required String grantData, String tokenType = "eg1", required String authClient}) → dynamic
Authenticate with the Fortnite API
getExternalAuths() Future<List<ExternalAuth>>
returns external auth connections for the account
killAccessToken({required String token}) Future
kills an access token. it kills all sessions created with that access token.
killSessions(String killType) Future
kills multiple auth token sessions at once.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited
unlinkExternalAuth({required String platform}) Future
unlink an external auth from account

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited