Hi, We have a gin based golang backend and it is u...
# support-questions
a
Hi, We have a gin based golang backend and it is using
gqlgen
for graphql apis rather than REST apis. The gin middleware of supertokens exposes REST apis. How can I use supertokens with my graphql backend? The graphql integration page only tells about verifying session. I want to call login, refreshtoken apis via my graphql layer.
s
hey, let me check and get back to you on this
a
thanks
r
hey @anupamdagar we don't expose graphql APIs for supertokens. We only have REST APIs
so the supertokens APIs like sign in, session refresh, sign out are all (and will continue to be) REST
But your application's APIs can, of course, be graphql endpoints.
a
does the supertokens sdk expose the internal methods? I can call those directly in my graphql resolvers then.
r
We do.
You can use those in your graphql resolver
But a fair warning - this will be a difficult path to integration.
a
okay
2 Views