Buscar pacotes, repositórios e categorias de apps

Repositório GitHubsaitejavankayala/auth0_flutter_web

auth0_flutter_web

saitejavankayala/auth0_flutter_web open-source repository details.

Capa do projeto auth0_flutter_web
Estrelas
2
Forks
0
Último push (UTC)
21 de mai. de 2024
Status do projeto
Ativo

README original

Texto original em inglês. Visite o GitHub para a versão atual.

A Flutter package to easily integrate Auth0 into Web Flutter apps.

Platform Support

Android iOS MacOS Web Linux Windows
x x x ✔️ x x

Auth0FlutterWeb is supported for web only.

Features

Integrate Auth0 authentication across web Flutter apps. Registration and Login users, logout users, and identify currently authenticated users across web.

Usage

To use this plugin, add auth0_flutter2 as a dependency in your pubspec.yaml file.

Web

Add the Auth0 Javascript SPA (Single Page Application) library.

<script src="https://cdn.auth0.com/js/auth0-spa-js/1.13/auth0-spa-js.production.js"></script>

Example

Import the library.

import 'package:auth0_flutter2/auth0_flutter2.dart';

Then initialize the Auth0FlutterWeb class in your main() method.

void main() {
  // add the auth0domain
  Auth0FlutterWeb.auth0Domain = "AUTH0_DOMAIN";
  //add the auth0ClientID
  Auth0FlutterWeb.auth0ClientId = "AUTH0_CLIENT_ID";
// add the redirect uri
  Auth0FlutterWeb.redirectUri = "YOUR_APP_REDIRECT_URI";
  

  // Set the URL strategy for our web app. Removes 
  // trailing hash(#) to ensure login callbacks
  // will be captured and processed correctly.
  Auth0FlutterWeb.setPathUrlStrategy();

  runApp(const MyApp());
}

Then invoke the class methods anywhere in your Dart code.

Auth0FlutterWeb.instance.userAuthentication(screenHint: "signup");
Auth0FlutterWeb.instance.userAuthentication(screenHint: "login");
Auth0FlutterWeb.instance.logoutUser();
Auth0FlutterWeb.instance.getLoggedInUserId();
saitejavankayala GitHub avatar
Autor no GitHub

saitejavankayala ↗

React Native | Flutter | Django | React

Tadepalligudem
LinguagensDartHTML

Pacotes publicados por este repositório

Dependências usadas

Lista de dependências 7 itens

Como escolher um repositório para seu projeto?

Filtre pelo caso de uso, compare a atividade e confira o projeto original antes de adotá-lo.

  1. Busque por nome, autor ou descrição e filtre por tema.
  2. Compare estrelas, forks e envios recentes. Estrelas indicam interesse, mas não garantem qualidade.
  3. Confira o README, a licença e as issues no GitHub antes de usar o projeto.

Fontes e manutenção

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗