Login Kit for Push2Web Unclear instructions
Hey Ya'll sorry I am little slow today.
in order to use push2Web Do I need to set up this entire flow to get the correct auth token? It's not entirely clear from the camera kit docs.
https://docs.snap.com/snap-kit/login-kit/Tutorials/web#client-side-only-web-application-integration
or can I just use the oAuth token from the dev portal?
Thanks for your help!
Once I get this implemented I think I will have a good React+CameraKit starter template.
Comments
-
using staging keys and the staging OAuth clientID's are returning a 401 for me
Not sure what I'm missing
repo for the curious: https://github.com/s-r-jones/camera-kit-web-test
0 -
Hi,
Just to confirm you are not missing anything else, can you please check if by using our Sample Page https://camera-kit.snapchat.com/websdk/sample/push2web you will get the lens from the Lens Studio? If this works, we can then dive deeper into your implementation.0 -
Also, the link https://github.com/s-r-jones/camera-kit-web-test doesn't work me. If your repo public?
0 -
@JacekC Your example works. It must be user error . I'll let you know if I can't get it working. Thanks for looking!
0 -
okay @JacekC I can confirm I am getting a good token, and doing the web flow from the docs, but I am getting a 403 when attempting this call: push2Web.subscribe(token, session, cameraKit.lensRepository);
https://api-kit.snapchat.com/com.snap.camerakit.v3.PushToDevice/ListenLensPush
The above repo is now public. Line 120 in App.tsx is where most of the action is. Thanks for looking!
0