FortniteAuth class

fortnite auth library


FortniteAuth(Client _client)


hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited


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
getAccountInfo() Future<EpicAccountInfo>
Get account info for the epic account.
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 nonexistent method or property is accessed.
toString() String
A string representation of this object.
unlinkExternalAuth({required String platform}) Future
unlink an external auth from account
updateAccountInfo(Map<String, dynamic> update) Future
Update account info for the epic account.


operator ==(Object other) bool
The equality operator.