Startrail APIs
  • 🛫Startrail PORT: All in one document for API/SDK
    • 🔀URL per environment
  • Issue transfer api
    • 📬Issue & Transfer SRR (NFT)
      • Request Signed URL for Upload/Download Files
      • File Information Metadata
      • Issue & Transfer
      • Webhook Setup
    • 📂Collection
      • Create Collection
      • Get Collection of LUW
    • 📢Change Logs
      • v1.2.0
      • v1.1.0
      • v1.0.1
  • Metadata Schema
    • 🪅Startrail Registry (SRR)
      • Version 2.2
      • Version 2.1
      • Version 2.0
    • 📤Transfer
      • Version 1.2
      • Version 1.1
      • Version 1.0
    • ☸️Custom History
      • Custom History of Exhibition
        • Version 1.2
      • Custom History of Auction
        • Version 1.3
      • Custom History of Appraisal
        • Version 1.1
      • Custom History of Restoration
        • Version 1.0
      • Custom History of Offchain
        • Version 1.1
  • Get SRR API
    • Get Owned SRRs
    • Get SRR by Collection contract address and Token Id
      • 🚫Get SRR by Token Id
    • Description Of SRR Data
  • Ethereum Signature Validator API
    • 🔏Ethereum Signature Validator API
      • Change Logs
  • Startrail SDK Js
    • 🔰Introduction
    • 🏃Getting Started
      • RPC endpoint and chainId
    • 💳Wallet Methods
    • 🔮Startrail API Methods
      • Add Custom Histories To SRRs
      • Approve SRR By Commitment
      • Bulk
      • Check ERC2981 Royalty
      • Create Collection
      • Convert Metadata
      • Create SRR
      • Transfer Collection Ownership
      • Transfer SRR To Ethereum Address
      • Transfer From With Provenance
      • Update Metadata
    • 📱Login Providers
      • Interface
      • Whitelabeling/Customizing
        • Email Password
      • Hints
      • Multi Factor Account Management
    • 🦊MetaMask
    • 🎎Authentication Integration
    • 👾Errors
    • 📢Change logs
      • v1.35.0
      • v1.34.0
      • v1.33.2
      • v1.33.1
      • v1.32.0
      • v1.31.1
      • v1.30.6
      • v1.30.5
      • v1.30.4
      • v1.30.3
      • v1.30.2
      • v1.30.1
      • v1.30.0
      • v1.29.1
      • v1.29.0
      • v1.28.2
      • v1.28.1
      • v1.28.0
      • v1.27.1
      • v1.27.0
      • v1.26.0
      • v1.25.2(Security Patch)
  • Startrail API
    • 💱Transfer SRR Ownership By RevealHash
    • Get Transaction Data
    • Get Metadata By tokenid
  • Subgraph
    • 📊A introduction of subgraph
    • How to retrieve SRR metadata
Powered by GitBook

©2023 Startbahn, Inc.

On this page
  • Common UI
  • Expected Parameters and Result with example case of google & line
  • UI Samples with combination of parameters

Was this helpful?

  1. Startrail SDK Js
  2. Login Providers

Interface

UI of the SDK

PreviousLogin ProvidersNextWhitelabeling/Customizing

Last updated 1 year ago

Was this helpful?

Common UI

Instead of directly proceeding with login, it is possible to open the modal for users to see the selectable social login list.

Expected Parameters and Result with example case of google & line

withModal
[’google’]
[’google’,’line’]
undefined

true

Modal: google

Modal: google, line

Modal: ALL

false

Direct Login without modal

Google Login without modal

Google Login without modal

undefined

Direct Login without modal

Modal: google, line

Modal: ALL

UI Samples with combination of parameters

📱

Login/Signup modal

When it's used ?

  • sdk.login({isModal: true}) is called.

This modal is not activated as default

  • If you hide modal, you may want to put Terms of Service and its link on your application.

  • It's not possible to remove [View more options] dropdown.

  • The order of icons is arranged based on the order of the values in loginProvider array except Google, Email Password and Email Passwordless.

    • For example, loginProvider: ["google", "apple", "line"] allocates the order from Google on the top followed by Apple and LINE underneath.

Signature Modal

When it's used ?

  • sdk.signMessage is called

As default, signMessage() is executed with an arbitrary string prepended to the message under the hood of Web3Auth library.

This enables skipping the signature modal popup and user consent process. The drawback of this is to require additional backend development. See more details.

{loginProvider: ['email_password'], authAction: { login: true, signup: false }, withModal: true}

{loginProvider: ['email_password'], authAction: { login: false, signup: true }, withModal: true}

{authAction: { login: false, signup: true },loginProvider: ['google', 'email_password'],withModal: true}

{authAction: { login: true, signup: falsse },loginProvider: ['google', 'email_password'],withModal: true}

{loginProvider: ['google', 'line', 'twitter', 'email_passwordless'], authAction: { login: true, signup: false }, withModal: true}

Web3Auth

{customUI: { words: { ja: { modal: { termsConditions: 'アカウント登録に伴い、Startbahn Port のプライバシーポリシーを含む、利用規約に同意します', termsConditionsLinkUrl: '' } }, withModal: true,authAction: { login: true, signup: false },loginProvider: [ 'google']}

Required implementation on clients’ backend
Installation | Documentation
https://google.com