在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):jkettmann/graphql-passport开源软件地址(OpenSource Url):https://github.com/jkettmann/graphql-passport开源编程语言(OpenSource Language):TypeScript 99.2%开源软件介绍(OpenSource Introduction):
Inside your resolvers you can get access to the following functions and attributes inside the context. context.authenticate("graphql-local", { email, password }); // not available for subscriptions
context.login(user); // not available for subscriptions
context.logout(); // not available for subscriptions
context.isAuthenticated();
context.isUnauthenticated();
context.getUser();
UsageFor a full working example including detailed instructions visit this blog post about how to authenticate with user credentials using GraphQL and passport. Continue reading here for a short summary. Initialize the 全部评论
专题导读
热门推荐
热门话题
阅读排行榜
|
请发表评论