Socket
Socket
Sign inDemoInstall

@actalink/rn-social-login

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@actalink/rn-social-login

This is a package for react native that provides social login with different social login providers.


Version published
Maintainers
2
Created
Source

Integration

Initialization

To initialize with Magic Link, make sure you have your API Key. You can create your free account here and get the API Key.

import { ActaSocialSDK, PROVIDER_TYPE } from '@actalink/social'

const acta = new ActaSocialSDK(PROVIDER_TYPE.MAGIC, MAGIC_API_KEY)

Note: If you are using Magic as your social login provider, you need to add it's Relayer to your app as well.

const Relayer = acta.getRelayer!();

return (
      <SafeAreaProvider>
        <Relayer />
        {...}
      </SafeAreaProvider>
)

Login with Email - OTP

We support login with email by OTP. This will return an entity - ActaSigner.

const actaSigner = await acta.login({ email }, LOGIN_TYPE.OTP)

Acta Signer

This is an entity which will be useful when you will use our Smart Wallet and payment functionalities.

const signer = acta.getActaSigner()
const balance = await signer.getBalance()
const address = await signer.getWalletAddress()
const signature = await actaSigner.signMessage(message)

FAQs

Package last updated on 19 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc