Problem/Motivation
I am trying to use visual editor with a drupal backend using GraphQL and jwt for authenticationa and a frontend running in next.js. I have made the preview work, that part seems to be working, I have also used https://github.com/octahedroid/drupal-decoupled/tree/main/packages/drupa... to wrap each paragraph in this component (I assume that kind of pings drupal in a way to open the right paragraph form).
When I open the node (a landing page node with paragraphs) I can see the preview and the row is clickable, but when I click it doesn't do anything and errors here https://git.drupalcode.org/project/visual_editor/-/blob/1.0.x/js/visual_... basically this input (defined above) is not on the page, I guess because the user is authenticatd in Drupal but not on the frontend, becuase we use jwt the user is not automatically logged in on the frontend when logged in drupal.
Does the module rely on a specific authentication method? and any further information I would love to try it further and see what I could do with it ;)
Great work, love the idea and the activity on slack =)
Comments
Comment #2
jmolivas commentedThanks for reporting the issue @joaogarin
Could you test latest version 1.0.5
Comment #3
jmolivas commentedCurrent auth is using Simple OAuth and Consumers
You can find some information on this blog post
https://octahedroid.com/blog/implementing-content-previews-drupal-and-remix
Related to Drafts those are using
https://www.drupal.org/project/graphql_compose_preview
We are about to release a Next.js starter to make easier for people to use this with that particular framework
Comment #4
joaogarin commentedHey sure I will try this out.
Unfortunately we don't use either simple oauth or consumers :(
Best regards
Comment #5
jmolivas commentedWe just pushed a next starter repo at https://github.com/octahedroid/drupal-decoupled
You can try by executing
By talking a look to the code you can probably get some ideas to fix your implementation
Comment #6
jmolivas commentedMore than a month ago since last comment and no reply, feel free to re-open if you thing it should be