소스 검색

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

Ivan Asmer 5 년 전
부모
커밋
db61e92fe1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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}