Open ValentinVignal opened 2 years ago
Hey sorry about that, this is indeed a doc issue. To set the user token you have to do it like that:
await client.setUser(
const User(
id: 'GroovinChip',
data: {
'handle': '@GroovinChip',
'first_name': 'Reuben',
'last_name': 'Turner',
'full_name': 'Reuben Turner',
'profile_image': 'https://avatars.githubusercontent.com/u/4250470?v=4',
},
),
const Token(userToken),
);
Describe the bug The documentation of
StreamFeedClient
is no correct.We can read in the documentation:
However, the
StreamFeedClient
factory does not have atoken
parameter:So where am I supposed to pass the user token? I run my app on the client side (front end), so when I try to pass the secret I get the error:
What version of Flutter do you use?
What package are you using? What version?
stream_feed
version0.5.2
.What platform is it about?
a copy of
flutter doctor --verbose
To Reproduce See description above
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Logs Run
flutter analyze
and attach any output of that command below. If there are any analysis errors, try resolving them before filing this issue.NA
Additional context Add any other context about the problem here.