simov / grant

OAuth Proxy
MIT License
4.08k stars 257 forks source link

Is there a framework-agnostic API? #283

Open viridia opened 1 year ago

viridia commented 1 year ago

I'm very interested in using grant, but I'm not using any of the frameworks (express, koa, etc.) listed in the docs - I'm using solid-start which is relatively new, and which uses file-based routing for defining API routes. I'm assuming I would have to roll my own wrappers which call grant - is there a way I can do this?

simov commented 1 year ago

You have to create your own handler. I have a framework-agnostic one, but as in Node.js framework agnostic https://github.com/simov/grant/issues/241