Skip to content

Trouble running the examples #75

Description

@tjacobs

Hi, I'm trying to try out the examples. Running:

cd social-messenger
yarn
yarn start

gets me:

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:71:19)

and

cd social-messenger-ts
cp .env-example .env.development
cat .env.development
# The key of your App
REACT_APP_STREAM_KEY=qkg...key from here:

Screenshot 2023-03-04 at 11 42 52 AM

# The user id (must be a valid user in your app)
REACT_APP_USER_ID=TeleportConnect

Where do I get this from? here?
Screenshot 2023-03-04 at 11 47 08 AM

# The user token (you can use https://getstream.io/chat/docs/react/tokens_and_authentication/?language=javascript#manually-generating-tokens)
REACT_APP_USER_TOKEN=eyJ.....

Generated from https://getstream.io/chat/docs/react/tokens_and_authentication/?language=javascript#manually-generating-tokens
with UserID TeleportConnect

# Not needed for local development, you can leave it empty
REACT_APP_TARGET_ORIGIN=

yarn install
yarn start

gets me in the browser:

useConnectUser.ts:39 Failed to connect user Error: userToken does not have a user_id or is not matching with user.id

with a blank page.

Any ideas?

Screenshot 2023-03-04 at 11 27 35 AM

Screenshot 2023-03-04 at 11 32 05 AM

On a MacBook Air M2 Ventura. Node.js v18.12.1.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions