Explorar o código

+jwtGQLRole for anon, query recursive walker for object id and regexp

Ivan Asmer %!s(int64=5) %!d(string=hai) anos
pai
achega
db61e92fe1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      jwt.js

+ 1 - 1
jwt.js

@@ -31,7 +31,7 @@ module.exports = {
             }
         },
 
-    jwtGQLRole: ({schema, rootValue={},secret, createContext, graphiql=true, anonJwtSub={id: "anon"}}) => 
+    jwtGQLAnon: ({schema, rootValue={},secret, createContext, graphiql=true, anonJwtSub={id: "anon"}}) => 
         async (req, res, gql) => { 
             let decoded = jwtCheck(req, secret) || {sub: anonJwtSub}