Procházet zdrojové kódy

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

Ivan Asmer před 5 roky
rodič
revize
db61e92fe1
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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}