Mixin OAuth for Single-page applications
2022-07-28 16:17
Words count:
241
Introducing how to handle Mixin OAuth by yourself without exposing client_secret. A basic understanding of Javascript is required.
The current method of using OAuth introduced in /docs/api/oauth requires developers to redirect users to https://mixin.one/oauth/authorize
first to get authenticated. Which in some cases doesn’t fit the scenario. Here I introduce a way to authorize the user without leaving the current page and without exposing client_secret
.
2
times bought,
0
times reward
![](https://api.multiavatar.com/3da8327c-aabf-3636-a8ab-3b7990f9bf60.png)
Comments
![](https://api.multiavatar.com/3bb60b8a-e7a6-3402-8d63-ed74c259e961.png)
@0x1A
a371
Didn't leave anything
Related Posts
![](https://api.multiavatar.com/3bb60b8a-e7a6-3402-8d63-ed74c259e961.png)
![](https://api.multiavatar.com/3bb60b8a-e7a6-3402-8d63-ed74c259e961.png)