# HG changeset patch # User Kim Alvefur # Date 1677704134 -3600 # Node ID 20ba6340f524f9b68239f16851e0cdb60c1aab34 # Parent 2c6acf2d6fd4988d8b8931eaa1fd445e221c8376 mod_http_oauth2: Issue tokens for the purpose of 'oauth2' This argument was added in Prosody trunk rev 012fa81d1f5d diff -r 2c6acf2d6fd4 -r 20ba6340f524 mod_http_oauth2/mod_http_oauth2.lua --- 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;