Giter Club home page Giter Club logo

Comments (3)

berkus avatar berkus commented on September 18, 2024

It is whatever you set it to in here.

from twilio-conversations-demo-react.

darde avatar darde commented on September 18, 2024

It is whatever you set it to in here.

Sorry, it is not clear for me where to set the credentials. I've already created an .env file with the token function

.env

REACT_APP_ACCESS_TOKEN_SERVICE_URL=https://twilio-react-chat-service-01234.twil.io/token-service

However, on the docs, this is the instruction. I can't understand where I should put this query string, and where I set up the credentials.

$REACT_APP_ACCESS_TOKEN_SERVICE_URL?identity=<USER_PROVIDED_USERNAME>&password=<USER_PROVIDED_PASSWORD>

Can you please clarify?

from twilio-conversations-demo-react.

berkus avatar berkus commented on September 18, 2024

@darde the token generator provides tokens based on your credentials, so the token generator function decides what users and passwords are. In the demo they are set in the generator function - https://github.com/twilio/twilio-conversations-demo-react#generating-access-tokens-with-twilio-functions

There's a section which lists users and passwords for testing:

// If you do not want to pay for other people using your Twilio service for their benefit,
// generate user and password pairs different from what is presented here
let users = {
    user00: "", !!! SET NON-EMPTY PASSWORD AND REMOVE THIS NOTE, THIS GENERATOR WILL NOT WORK WITH EMPTY PASSWORD !!!
    user01: ""  !!! SET NON-EMPTY PASSWORD AND REMOVE THIS NOTE, THIS GENERATOR WILL NOT WORK WITH EMPTY PASSWORD !!!
};

from twilio-conversations-demo-react.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.