Random App
Random App

Reputation: 21

Client Only and Tokens?

to access/write to a feed from the browser / Javascript, this answer says that you have to

  1. Generate a token on the server (using API key+secret),
  2. Provide that token to the client (just render it somewhere)
  3. Use the token from in JS when accessing the feed

My problem now is that I basically have no server side. My app uses Polymer, so everything is running on the client and I have no way of creating those tokens (my app is served through Firebase, and I guess all it does is serve the html files).

With the polymer/firebase setup, can I still use getstream.io somehow?

Thanks!

Upvotes: 2

Views: 409

Answers (1)

iandouglas
iandouglas

Reputation: 4306

We don't have any interaction with Firebase directly, so you'd still need some piece of middleware to handle API calls and generating these tokens.

It's an interesting idea, though. I'll add a TODO item to look into Firebase interactivity via a plugin in the future.

Upvotes: 1

Related Questions