Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/minecraft_lib/auth/oauth.ts>OAuthClient#requestDeviceAccessToken

A collection of modules that can be used to build Minecraft servers, clients, utilities and other tools.
Latest
method OAuthClient.prototype.requestDeviceAccessToken
import { OAuthClient } from "https://deno.land/x/minecraft_lib@0.1.0/auth/oauth.ts";

Requests an access token using a given device code.

Returns null, if the authorization is pending.

Parameters

deviceCode: string

Returns

Promise<OAuthToken | null>