Learn R Programming

icesConnect (version 1.1.4)

decode_token: Decode token

Description

Decodes the token to allow inspection of claims

Return the expiration date of the token

What user is this token for

Usage

decode_token(jwt = ices_token(), formatted = TRUE)

token_expiration(jwt = ices_token())

token_user(jwt = ices_token())

Value

list of claims

POSIXct date time

string, user name

Arguments

jwt

a javascript web token got by running ices_token()

formatted

should formatted output be returned

See Also

username

username

username

Examples

Run this code
if (FALSE) {
decode_token()
}

if (FALSE) {
token_expiration()
}

if (FALSE) {
token_user()
}

Run the code above in your browser using DataLab