Skip to contents

Constructs a redirect URI for OAuth flows. If the provided URI doesn't have a port, assigns a random port using httpuv::randomPort().

Usage

default_redirect_uri(redirect_uri = httr2::oauth_redirect_uri())

Arguments

redirect_uri

A character string specifying the redirect URI. Defaults to httr2::oauth_redirect_uri().

Value

A character string with the redirect URI

Examples

default_redirect_uri()
#> [1] "http://localhost:35782/"