Git Product home page Git Product logo

aptos-keyless-example's Introduction

Aptos Keyless Example

This template provides a minimal setup to get Keyless working on Vite with some ESLint rules.

Configuring Google

Here are the step-by-step instructions for obtaining OAuth credentials for Google:

  1. Go to the Google Cloud Console and sign in to your account.
  2. Once you’re signed in, click on the project dropdown menu in the top navigation bar and select or create the project you want to use for your OAuth credentials.
  3. Click the search bar at the top of the page and search for "OAuth consent screen".
  4. Complete the "Configure Consent Screen" instructions if you haven’t completed this before.
  5. On the left, click "Credentials". Towards the top of the screen click the "Create Credentials" dropdown and select "OAuth client ID".
  6. Select the "Web application" application type.
  7. Enter a name for your OAuth client ID, such as "Local Development".
  8. In the "Authorized JavaScript origins" field, enter the origin of your web application: http://localhost:5173
  9. In the "Authorized redirect URIs" field, enter the URI that Google should redirect users to after they authorize your application. This should be: http://localhost:5173/callback.
  10. Click the "Create" button to create your OAuth client ID.
  11. After creating your OAuth client ID, you should see a "Client ID" and "Client Secret" on the "Credentials" page. Copy the "Client ID" and paste it into src/core/constants.ts

That's it! You should now be able to authenticate with Google in your application.

If you need more help with configuring the Google OAuth App check their docs here.

Usage

Ensure you have copied your google client id above into the src/core/constants.ts file

bun i
bun dev

This will start a development server at http://localhost:5173.

aptos-keyless-example's People

Contributors

cswellessun avatar gregnazario avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.