Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class GetMessageResponse {
class MailosaurAPIClient {
static const String serverId = 'ncor7c1m';
static const String apiURL = 'https://mailosaur.com/api/messages';
static const String mailosaurAPIKey = "udoOEVY0FNE11tTh";
static const String mailosaurAPIKey = "MAILOSAUR_API_KEY";

static String appUrl(String path) {
if (kIsWeb) {
Expand Down
6 changes: 4 additions & 2 deletions lib/passage_token_store.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ import 'passage_flutter_platform/passage_flutter_platform_interface.dart';
class PassageTokenStore {

/// Returns the auth token for the currently authenticated user.
/// If the stored auth token is invalid, this method will use the refresh token to get and save a new auth token.
///
/// Returns:
/// A `Future<String?>` representing the current Passage user's auth token,
/// or `null` if no token has been stored.
/// A `Future<String?>` representing the user's auth token,
/// Throws:
/// `PassageError`
Future<String> getValidAuthToken() {
return PassageFlutterPlatform.instance.getValidAuthToken();
}
Expand Down
Loading