Skip to content

Session is required? #101

Answered by alkihis
jmtt89 asked this question in Q&A
Oct 18, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi,

Hint for session usage is purely informative. You can use another method if you want.
Yet, between steps 1 and 2, user is redirected to Twitter website (if callback method is selected) so you need a data structure to "remember" which OAuth token secret is linked to the OAuth token returned by Twitter at step 2.

You didn't specify it in your step 3, but OAuth token secret is required to use access_token: a specific temporary instance must be created with your regular consumer keys, and OAuth token+secret combinaison as accessToken and accessSecret.

You can still use another kind of storage to link OAuth token to OAuth token secret:

  • Memory store, that is heavily discouraged because of …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dylan1951
Comment options

Answer selected by alkihis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #98 on October 19, 2021 11:22.