Giter VIP home page Giter VIP logo

nextjs-hasura-boilerplate's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar enieber avatar ghoshnirmalya avatar grahamplata avatar msaaddev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

nextjs-hasura-boilerplate's Issues

how to update Hasura?

Hi there,
Great boilerplate, thank you!
I'm trying to update Hasura to the latest version hasura/graphql-engine:v2.0.0-alpha.6 however when I set image in docker-compose.yml and FROM in DOCKERFILE accordingly, the server still reports it is on v1.3.3.
I must be missing something simple here?
Thanks.

Session not reflected upon first login

I noticed when initializing the app, the session within _app.js and subsequently apollo are not reflected with the users's creds.

It appears as the session goes through the callbacks of next-auth but is never reflected in the UI until a subsequent refresh.

I noticed by being unable to click the logout button within the nav right after signing in. I haven't dove into the issue as its late here but I'll see what I can find tomorrow and update with reproducible code need be.

Hasura doesn't have JWT auth setup

Maybe I missed something but I can't find anything on Hasura's side for authentication. I thought there would be a json string in docker-compose.yaml for the jwt auth setup but I couldn't find that in the repo

User roles

Hi, Thank you for great project.

I was wondering how to set up user roles in this project.
Now it seems that the roles are hardcoded in JWT claims.

"https://hasura.io/jwt/claims": {
"x-hasura-allowed-roles": ["admin", "user"],
"x-hasura-default-role": "user",
"x-hasura-role": "user",
"x-hasura-user-id": token.id,
}

[BUG] Hasura NextAuth Refresh token

How do you handle refresh token with custom jwt token? I have been looking for ways to implement refresh token with next-auth but haven't found anything useful yet. Do you have any suggestion on how to handle refresh tokens once the original token expires?

I am hoping it could be implemented in the jwt/session callback in next-auth as these are called every time the user accesses a session. But how do I send my original refresh token to the client which would last longer than the access token and then once the access token expires I could just verify the refresh token and generate new tokens?

Any kind of help would be great.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.