lotek_refresh_token: Refresh Lotek Access Token

View source: R/lotek_auth.R

lotek_refresh_tokenR Documentation

Refresh Lotek Access Token

Description

Attempts to acquire a new access token when current one expires.

Usage

lotek_refresh_token(force_refresh = FALSE)

Arguments

force_refresh

Logical - only used for testing.

Value

True if current token is still valid or token is refreshed, false if token is expired and attempt to refresh failed.

Notes

This function only works sporadically and the reasons are unclear. If this function fails a new access token can be created by resending the user name and password with lotek_login.

See Also

lotek_login for starting a new session.


Huh/collar documentation built on Aug. 5, 2022, 11:02 p.m.