o2web / graphql-auth Goto Github PK
View Code? Open in Web Editor NEWGraphQL authentication with JWT
License: MIT License
GraphQL authentication with JWT
License: MIT License
Hey, I also have done a boilerplate with devise and jwt, but we think we should focus on one library, so we want to join here ๐
What about rails 6 support? Where can we help to get this running?
Hi,
I am trying to install graphql-auth with the following:
rails (6.0.3.2)
devise (4.7.2)
graphql (1.11.3)
jwt (1.5.6)
When I run rails g graphql_auth:install, I face the following error:
#---
[WARNING] Could not load generator "generators/graphql_auth/install_generator". Error: undefined method sign_in_mutation' for nil:NilClass. C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/graphql-auth-0.2.2/app/graphql/types/graphql_auth.rb:6:in
module:GraphqlAuth'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/graphql-auth-0.2.2/app/graphql/types/graphql_auth.rb:3:in <top (required)>' C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/zeitwerk-2.4.0/lib/zeitwerk/kernel.rb:27:in
require'
....
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.3.2/lib/rails/commands.rb:18:in <top (required)>' bin/rails:4:in
require'
bin/rails:4:in <main>' ... Could not find generator 'graphql_auth:install'. Maybe you meant "graphql:install"? Run
rails generate --help` for more options.
---#
I tried debugging with few monkey-patchings at app\graphql\types\graphql_auth.rb but got lost.
Can you please help?
I wondered why there is no sign out mutation. The client could "forget" the token in the frontend to sign out, but with a explicit logout mutation we could invalidate the token in the database.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.