R: Generate a JWT signature given credentials.

jwt_signature {httr} | R Documentation

## Generate a JWT signature given credentials.

### Description

As described in https://developers.google.com/accounts/docs/OAuth2ServiceAccount

### Usage

    jwt_signature(credentials, scope, aud, duration = 60L * 60L)

### Arguments

`credentials` | Parsed contents of the credentials file.
`scope` | A space-delimited list of the permissions that the application requests.
`duration` | Duration of token, in seconds.

### Examples

    ## Not run:
    cred <- jsonlite::fromJSON("~/Desktop/httrtest-45693cbfac92.json")
    jwt_signature(cred, "https://www.googleapis.com/auth/userinfo.profile")

    ## End(Not run)

[Package httr version 1.2.1 Index]