Skip to content
Sign UpLog In

Community

#replidentity
FEATURED
Community Hub
Get started in the Replit Community
replitlaima
Feedback on Tablet Support, Teams on Mobile and Sharing (Deeplinking)
tyler
Share feedback for the Workspace
tyler
Splits are out for everyone
TheDrone7
Welcome to Replit Community [+ Rules]
TOP TAGS
#games
#apps
#python
#javascript
#html
#fun
#game
#simple
#python3
#java
#cpp
#bash
RayhanADev
RayhanADev
published a Repl
3 months ago
5
replidentity-lib
replidentity-libRepl Identity (for Typescript/Javascript!) Install with NPM $ npm install replidentity with Yarn $ yarn add replidentity Usage import * as replidentity from 'replidentity'; async function main() { let audience = 'another-cool-repl-id'; const identityToken = await replidentity.CreateIdentityTokenAddressedTo(audience); const parsedIdentity = await replidentity.VerifyIdentity( identityToken, audience, replidentity.ReadPublicKeyFromEnv, ); console.log(The identity token (${identityToken.length} bytes) is:); console.log(` repl id: ${parsedIdentity.replid} user: ${parsedIdentity.user} slug: ${parsedIdentity.slug} audience: ${parsedIdentity.aud} ephemeral: ${parsedIdentity.ephemeral} origin: ${parsedIdentity.originReplid}`); } main(); For more information, visit the blog post!
CosmicBear
CosmicBear
I'm probably not ever gonna use this but it looks cool. 3 months ago
Classfied3D
Classfied3D
whats repl identity? i read the blog, but i don't understand what you'd use it for3 months ago