Giter Club home page Giter Club logo

Comments (3)

j-berman avatar j-berman commented on September 22, 2024 1

Sweet! Unfortunately bandwidth from our side is super slim these days, but happy to guide whoever may stumble across this.

Regarding Feature Request 1:

  • With the Userbase prod plan, it may be easier to just create 2 different Userbase apps: a test app and a prod app.
  • You can already add/remove domains to/from the whitelist!

from userbase.

impactvelocity avatar impactvelocity commented on September 22, 2024

@j-berman - Thanks!

Request 1 - Can this be through the Admin API ? I couldn't find that in the document besides Get and List apps.

My use case, I will be allow my end users to create a Userbase app for their site (my tools helps makes sites of sorts). So the idea would be to use Userbase. Just create an App for them (through the API) and allow them to edit settings from within my app.

https://userbase.com/docs/api/

I found these files:

https://github.com/smallbets/userbase/blob/master/src/userbase-server/server.js

https://github.com/smallbets/userbase/blob/master/src/userbase-server/app.js

I tried to POST to admin/app/create-app with the auth token and appName and encryptionMode, but it gave a response, Please sign in.

Maybe its a simple ish thing to expose the create-app & update-app? Or is there more security risks for this?

from userbase.

impactvelocity avatar impactvelocity commented on September 22, 2024

@j-berman

For these routes: (server.js)

v1Admin.post('/create-app', admin.authenticateAdmin, appController.createAppController)

POST '/apps/:appId/domain' & POST '/stripe/connected/apps/:appId/trial-period',

They use: 'admin.authenticateAdmin'

If I create another version like /create-app-token and use admin.authenticateAccessToken that works locally.

Is that something we can add?

It works locally, but I am having trouble on how to actually host Userbase with EC2.

from userbase.

Related Issues (20)

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.