Skip to contents

Log in/out osmapiR.

Usage

authenticate_osmapi()

logout_osmapi()

Value

For authenticate_osmapi, print the user and permissions of the connection and return invisibly the display name of the logged user. logout_osmapi clear the OAuth2 token and can be useful to change user.

Details

All functions that require authentication will trigger the log in if the session is not yet authenticated, so calling this function is not really needed. Use authenticate_osmapi to sign in before executing scripts that require authentication to avoid interruptions.

See also

Examples

if (FALSE) {
authenticate_osmapi()
logout_osmapi()
}