Skip to content

Use URL searchParams when construction in getAuthorizeUri #124

@WeeJeWel

Description

@WeeJeWel

Google requires ?access_type=offline in the authorization url:

https://accounts.google.com/o/oauth2/auth?access_type=offline&prompt=consent

This library concats ?client_id= which leads to two ?.

A more elegant way would be to use new URL() and then .searchParams.append('client_id', ...).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions