YouTubePHP Documentation

ReauthorizerInterface

A way to get a brand-new grant when the existing one can no longer be refreshed: there is no refresh token, or Google revoked it.

YouTube calls this as a last resort. Every Google sign-in needs a person at a browser, so an implementation may take as long as that takes; the client waits on the promise. Reject it to give up and let the original failure surface.

Tags
since
1.0.0
author

Valithor Obsidion valithor@valgorithms.com

Table of Contents

Methods

reauthorize()  : PromiseInterface<string|int, array{access_token: string, refresh_token?: string|null, expires_in?: int|null, expires_at?: int|null, scope?: list|null, token_type?: string|null}>

Methods

reauthorize()

public reauthorize() : PromiseInterface<string|int, array{access_token: string, refresh_token?: string|null, expires_in?: int|null, expires_at?: int|null, scope?: list|null, token_type?: string|null}>
Return values
PromiseInterface<string|int, array{access_token: string, refresh_token?: string|null, expires_in?: int|null, expires_at?: int|null, scope?: list|null, token_type?: string|null}>
On this page

Search results