powered by
This function is a simple helper that extract the path part of a URL. It is useful when constructing OAuth 2.0 derived authenticators for the redirect_path argument.
redirect_path
get_path(url, root = NULL)
The "path" part of the URL
The url to extract the path from
An optional root to remove from the path as well
get_path("https://example.com/auth") get_path("https://example.com/api/auth", root = "/api")
Run the code above in your browser using DataLab