diff --git a/docs/topics/access-token.md b/docs/topics/access-token.md index 1d898cd89..16acc4a10 100644 --- a/docs/topics/access-token.md +++ b/docs/topics/access-token.md @@ -8,7 +8,7 @@ This can be run from anywhere, not necessarily from the host where MAS is runnin sh ./misc/device-code-grant.sh [synapse-url] ... ``` -This will prompt you to open a URL in your browser, finish the authentication flow, and print the access token. +This will prompt you to open a URL in your browser, finish the authentication flow, and print the access and refresh tokens. This can be used to get access to the MAS admin API: diff --git a/misc/device-code-grant.sh b/misc/device-code-grant.sh index c77101cb5..a89c26fd2 100755 --- a/misc/device-code-grant.sh +++ b/misc/device-code-grant.sh @@ -45,7 +45,7 @@ RESP="$( { "client_name": "CLI tool", "client_uri": "https://github.com/element-hq/matrix-authentication-service/", - "grant_types": ["urn:ietf:params:oauth:grant-type:device_code"], + "grant_types": ["urn:ietf:params:oauth:grant-type:device_code","refresh_token"], "application_type": "native", "token_endpoint_auth_method": "none" }