|
@@ -23,7 +23,7 @@ local function _verify_token(token, appId, appSecret, roomName)
|
23
|
23
|
|
24
|
24
|
local issClaim = claims["iss"];
|
25
|
25
|
if issClaim == nil then
|
26
|
|
- return nil, "Issuer field is missing";
|
|
26
|
+ return nil, "'iss' claim is missing";
|
27
|
27
|
end
|
28
|
28
|
if issClaim ~= appId then
|
29
|
29
|
return nil, "Invalid application ID('iss' claim)";
|
|
@@ -31,7 +31,7 @@ local function _verify_token(token, appId, appSecret, roomName)
|
31
|
31
|
|
32
|
32
|
local roomClaim = claims["room"];
|
33
|
33
|
if roomClaim == nil then
|
34
|
|
- return nil, "Room field is missing";
|
|
34
|
+ return nil, "'room' claim is missing";
|
35
|
35
|
end
|
36
|
36
|
if roomName ~= nil and roomName ~= roomClaim then
|
37
|
37
|
return nil, "Invalid room name('room' claim)";
|