Skip to content

JWT auth support

Compare
Choose a tag to compare
@mrspartak mrspartak released this 29 May 18:48
· 93 commits to master since this release

This was added to support front-end projects with a bundler. But of course, table autogen will not work

const orm = new Hasura({
  graphqlUrl: process.env.GQL_ENDPOINT,
  jwt: process.env.JWT_TOKEN,
});

orm.createTable({name: '_om_test'})
  .createField({name: 'id', isPrimary: true})
  .createField({name: 'text'})
  .createField({name: 'increment'})
  .createField({name: 'type'})
  .generateBaseFragments();