Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Support directly connecting with tokens #13

Open
Fleker opened this issue Dec 4, 2018 · 2 comments
Open

Support directly connecting with tokens #13

Fleker opened this issue Dec 4, 2018 · 2 comments

Comments

@Fleker
Copy link

Fleker commented Dec 4, 2018

Working on a webhook interaction with Feedly, each user will bring their own tokens. I would be remiss to hardcode it on the server. It'd be great if, instead of using a file to process the tokens, I could pass them directly into the Feedly constructor.

@hildjj
Copy link
Owner

hildjj commented Dec 4, 2018

I like it. Would you be willing to pass in an expiry date also? I would throw an exception if you supplied any of (access_token, refresh_token, expires) without specifying all three.

@Fleker
Copy link
Author

Fleker commented Dec 4, 2018

Yeah, I'd pass in all three. Right now I'm manually setting these fields after construction:

f.state = {
    access_token: getAccessToken(),
    refresh_token: getRefreshToken(),
    expires: new Date("2018-12-08T01:54:19.154Z")
}

Fleker added a commit to Fleker/node-feedly that referenced this issue Jan 11, 2019
Fleker added a commit to Fleker/node-feedly that referenced this issue Jan 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants