Skip to content
This repository was archived by the owner on Apr 18, 2026. It is now read-only.
This repository was archived by the owner on Apr 18, 2026. It is now read-only.

How do I set up an authorization for Drive API? #856

Open

Description

@DigitalNaut

I've been reading documentation for several days. I just want my SPA to store some simple data on Google Drive without the need to sign in.

What should I follow to do this? It's allegedly so simple but all this documentation makes it really difficult and frustrating to follow along when half of it is deprecated, one can barely tell the code flows apart because it suddenly changes from frontend to backend libraries, and some sample codes are missing. I'm bouncing around between pages with no real answers.

Activity

  1. Arzentus commented on Mar 12, 2023

    @Arzentus

    Hey, Naut why use google drive to store data? Even if u use Google drive you will need a account to store data?

  2. DigitalNaut commented on Mar 12, 2023

    @DigitalNaut
    Author

    Thanks for replying, Arzentus!

    I'm building a couple of learning SPAs that need to keep track of user progress beyond local storage. I think that setting up a server just for that seems overkill and may induce costs that I cannot afford, not to mention more maintenance.

    I've seen several apps that don't need you to sign in to store data on Drive, and the documentation seems to say that. I got one app working with both authorization and authentication, but when I deploy the second one, I can't figure out when/if/how I should ask for simple authorization for the general public. Authentication seems inappropriate for the nature of the app, so simple authorization seems ideal.

    A small code sample for a single file upload with authorization using implicit flow would help out a ton :)

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