Mercurial > prosody-modules
diff mod_http_oauth2/mod_http_oauth2.lua @ 5182:20ba6340f524
mod_http_oauth2: Issue tokens for the purpose of 'oauth2'
This argument was added in Prosody trunk rev 012fa81d1f5d
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 01 Mar 2023 21:55:34 +0100 |
parents | 2c6acf2d6fd4 |
children | 09d6bbd6c8a4 |
line wrap: on
line diff
--- a/mod_http_oauth2/mod_http_oauth2.lua Wed Mar 01 21:11:48 2023 +0100 +++ b/mod_http_oauth2/mod_http_oauth2.lua Wed Mar 01 21:55:34 2023 +0100 @@ -62,7 +62,7 @@ end local function new_access_token(token_jid, scope, ttl) - local token = tokens.create_jid_token(token_jid, token_jid, scope, ttl); + local token = tokens.create_jid_token(token_jid, token_jid, scope, ttl, nil, "oauth2"); return { token_type = "bearer"; access_token = token;