https://github.com/grab/grabplatform-sdk-js-example
https://github.com/grab/grabplatform-sdk-js-example
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/grab/grabplatform-sdk-js-example
- Owner: grab
- License: mit
- Created: 2019-04-09T08:33:43.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-06-12T05:36:21.000Z (over 2 years ago)
- Last Synced: 2025-01-14T09:36:34.623Z (12 months ago)
- Language: JavaScript
- Size: 5.89 MB
- Stars: 1
- Watchers: 4
- Forks: 2
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GrabID Javascript SDK Demo Project
This demo is intended to show off some of the core scenarios for which you may want to use the GrabId JavaScript SDK.
You can find the SDK referenced for this project here: [GrabID Javascript SDK](https://github.com/grab/grabplatform-sdk-js)
You can find this demo running live here: [Live Demo](https://d3jzjbsmy9pkbd.cloudfront.net/)
The relevant points of integration with the SDK can be found in these places:
[Requesting Authorization](./src/components/AskForRide.js)
[Receiving the result of the authorization request and redirecting appropriately](./public/token.html)
[Getting a token and using it to make an authenticated call](./src/components/ConfirmRide.js)
Everything else in the repository is just there to make it feel more like a "real" site. The areas listed above are the only places where this demo implements the GrabID SDK.