Skip to content

Commit

Permalink
docs: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
qinhua committed Nov 21, 2024
1 parent 9625ca5 commit 38fa6a4
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
23 changes: 18 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
# CARV ID SDK
<p align="center">
<img src="./stories/assets/carv_id.svg" style="width:100px;" alt="CARV ID logo" />
</p>
<h1 align="center">CARV ID SDK</h1>


The SDK for CARV ID ecosystem.

- CARV ID SDK
- CARV ID SDK Widget

## Demo

- [CARV ID SDK Demo](https://carv-id-test.carv.io/)

## Turborepo

Expand Down Expand Up @@ -60,8 +70,8 @@ This Turborepo has some additional tools already setup for you:
redirect_uri: "https://t.me/BabyChinBot/carv_id_demo",
},
});
console.log(instance, "CarvID initialized");
</script>
console.log(instance, "CarvID SDK initialized");
</script>
```
#### ES Module
Expand All @@ -86,8 +96,11 @@ window.onload =function()=>{
onLoad: (data) => {
console.log("onLoad", data);
},
onSuccess: (data) => {
console.log("onSuccess", data);
onAuthSuccess: (data) => {
console.log("onAuthSuccess", data);
},,
onAuthFailed: (data) => {
console.log("onAuthFailed", data);
},
});
}
Expand Down
5 changes: 5 additions & 0 deletions stories/assets/carv_id.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 38fa6a4

Please sign in to comment.