Skip to content

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

Description

@anentropic

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?

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