Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I authorise more vehicles for the same user? #157

Open
anentropic opened this issue Jan 25, 2023 · 0 comments
Open

How do I authorise more vehicles for the same user? #157

anentropic opened this issue Jan 25, 2023 · 0 comments

Comments

@anentropic
Copy link

The docs for getAuthUrl say:

https://github.com/smartcar/node-sdk/blob/master/doc/readme.md#authclientgetauthurlscope-options--string

By default users are not shown the permission dialog if they have already approved the set of scopes for this application.

But I can't see how to reach this behaviour. Working with the demo app https://github.com/smartcar/getting-started-express in test mode what I see is that the permission dialog is always displayed, and upon completion of the flow the backend receives a fresh access token but if I call getUser with it then it resolves to the same user id. But whichever vehicles are authorised replace any previously authorised vehicles for that user.

Is this a peculiarity of the test environment, or that's how it works in live too?

Is there a way to authorise additional vehicles for an existing user id?

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

No branches or pull requests

1 participant