decode_token {icesConnect}R Documentation

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())

Arguments

jwt

a javascript web token got by running ices_token()

formatted

should formatted output be returned

Value

list of claims

POSIXct date time

string, user name

See Also

username key_get

username key_get

username key_get

Examples

## Not run: 
decode_token()

## End(Not run)

## Not run: 
token_expiration()

## End(Not run)

## Not run: 
token_user()

## End(Not run)


[Package icesConnect version 1.0.0 Index]