Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

ModIO.APIClient.GetOAuthToken

Jackson Wood edited this page Mar 6, 2019 · 8 revisions

APIClient.GetOAuthToken

public static void GetOAuthToken(string securityCode, Action<string> successCallback, Action<WebRequestError> errorCallback);

Parameters

Name Description
securityCode Security code sent to the user's email address
successCallback Action to execute if the request succeeds
errorCallback Action to execute if the request returns an error

Description

Requests a user OAuthToken in exchange for a security code.

This request is the second step of authenticating a user account for the game/app, requesting the user OAuthToken paired with the security code provided.

See Authentication and Security for more information.

See also: docs.mod.io page, ModIO.APIClient.SendSecurityCode, ModIO.UserAuthenticationData

Clone this wiki locally