OAuth (Instagram) without refresh

前端 未结 1 717
感情败类
感情败类 2021-02-06 02:35

I have a single page javascript application, and I\'m wondering if I can authenticate the user on Instagram without refreshing the page. I\'d like to try to do something similar

相关标签:
1条回答
  • 2021-02-06 03:31

    It ended up being super easy to do this with a popup using the comments from tdun and Jan. Thanks guys! Used the Instgram class from 9lessons, and used window.opener.processAuthData(authData) to call back to the original window. And I did have to do a refresh, but it was in the popup window, not in the main app window, which was what I was going for.

    0 讨论(0)
提交回复
热议问题