Skip to content

Authentication documentation #4

@brages1337

Description

@brages1337

Hi - I'm testing out rmcl and got it authenticated when I ran in the terminal. Was prompted to register the cloud code that I get from https://my.remarkable.com/device/connect/desktop.

Now I'm trying to do the same when I write the script in my IDE. I try to use the rmcl.register_device(code), but I'm not calling it correctly somehow. I get the following errors:

File "....", line 389, in get_client await _client.prompt_register_device()
File "....", line 165, in prompt_register_device raise AuthError("Device is not registered and not on a TTY to prompt user") rmcl.exceptions.AuthError: Device is not registered and not on a TTY to prompt user

I guess rmcl is trying to prompt for input from the user in the terminal - instead of using the code i had as input to register_device().

Currently calling await rgister_device(code) inside a function and calling that function afterwards.

I have also tested using the _s version of the function (register_device_s), and I'm getting the same error there.

Any tips?

PS: New to coding again, so sorry if this is not the right place for issues such as this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions