mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
feat: implement magic link login (#3086)
* feat: implement magic link login * ci: create env file * ci: generate flutter env files * ci: disable inject env * chore: update table name * Update frontend/appflowy_flutter/lib/env/env.dart Co-authored-by: Mathias Mogensen <42929161+Xazin@users.noreply.github.com> * chore: fix compile --------- Co-authored-by: Mathias Mogensen <42929161+Xazin@users.noreply.github.com>
This commit is contained in:
20
frontend/appflowy_flutter/lib/env/env.dart
vendored
20
frontend/appflowy_flutter/lib/env/env.dart
vendored
@ -1,4 +1,5 @@
|
||||
// lib/env/env.dart
|
||||
import 'package:appflowy/startup/startup.dart';
|
||||
import 'package:envied/envied.dart';
|
||||
|
||||
part 'env.g.dart';
|
||||
@ -37,12 +38,13 @@ abstract class Env {
|
||||
static final String supabaseJwtSecret = _Env.supabaseJwtSecret;
|
||||
}
|
||||
|
||||
bool get isSupabaseEnable => false;
|
||||
// Env.supabaseUrl.isNotEmpty &&
|
||||
// Env.supabaseAnonKey.isNotEmpty &&
|
||||
// Env.supabaseKey.isNotEmpty &&
|
||||
// Env.supabaseJwtSecret.isNotEmpty &&
|
||||
// Env.supabaseDb.isNotEmpty &&
|
||||
// Env.supabaseDbUser.isNotEmpty &&
|
||||
// Env.supabaseDbPassword.isNotEmpty &&
|
||||
// Env.supabaseDbPort.isNotEmpty;
|
||||
bool get isSupabaseEnabled {
|
||||
// Only enable supabase in release and develop mode.
|
||||
if (integrationEnv().isRelease || integrationEnv().isDevelop) {
|
||||
return Env.supabaseUrl.isNotEmpty &&
|
||||
Env.supabaseAnonKey.isNotEmpty &&
|
||||
Env.supabaseJwtSecret.isNotEmpty;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user