Retrieves the current OAuth2 access token for debugging purposes, such as testing endpoints in Swagger UI. This function uses the client credentials flow to obtain the token. You will not normally need to call this function directly, as authentication is handled automatically.
Usage
ns_get_token(
client_id = Sys.getenv("NETTSKJEMA_CLIENT_ID"),
client_secret = Sys.getenv("NETTSKJEMA_CLIENT_SECRET"),
client_name = "nettskjemar"
)