@ng-supabase/core
Version:
ng-supabase is a component library and helper utilities for integrating Supabase in your angular application.
43 lines (42 loc) • 2.22 kB
TypeScript
import { OnInit } from '@angular/core';
import { FormGroup, FormControl } from '@angular/forms';
import { WaitMessage } from '../wait-message';
import { AuthError } from '@supabase/supabase-js';
import { LogService } from '../logging/log.service';
import { SupabaseService } from '../supabase.service';
import { RouteService } from '../route.service';
import { SupabaseConfig } from '../supabase-config';
import * as i0 from "@angular/core";
export declare class ResetPasswordComponent implements OnInit {
private readonly log;
private readonly config;
private readonly supabase;
private readonly routeService;
title: string;
email: string;
/**
* The absolute route to redirect to from the email link. This should not
* be used in conjunction with "redirectToPath" (use one or the other).
*/
redirectToUrl: string;
/**
* A route path to redirect to from the email link (as apposed to an absolute path).
* This path will be appended to the app's root URL and will be the URL that is
* targeted from the email link. This should not be used in conjunction with
* "redirectTo" (use one or the other).
*/
redirectToPath: string;
readonly errorMessage: import("@angular/core").WritableSignal<string>;
readonly sendingReset: import("@angular/core").WritableSignal<boolean>;
readonly wait: import("@angular/core").WritableSignal<WaitMessage | null>;
readonly form: FormGroup<{
email: FormControl<string | null>;
}>;
constructor(log: LogService, config: SupabaseConfig, supabase: SupabaseService, routeService: RouteService);
ngOnInit(): void;
resetPassword(): Promise<void>;
onError(error: AuthError): void;
protected getRedirectTo(): string;
static ɵfac: i0.ɵɵFactoryDeclaration<ResetPasswordComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<ResetPasswordComponent, "supabase-reset-password", never, { "title": { "alias": "title"; "required": false; }; "email": { "alias": "email"; "required": false; }; "redirectToUrl": { "alias": "redirectToUrl"; "required": false; }; "redirectToPath": { "alias": "redirectToPath"; "required": false; }; }, {}, never, never, true, never>;
}