Skip to content

Instantly share code, notes, and snippets.

@chani24
chani24 / woven.js
Last active February 10, 2021 16:55
const onboardUser = (ref, name, email, phone) =>
fetch("http://api.woven.finance/v2/api/vnubans/create_customer", {
method: "post",
body: JSON.stringify({
customer_reference: ref,
name: name,
email: email,
mobile_number: phone,
}),
headers: {
<div class="nav-wrapper">
<mat-toolbar class="nav">
<span class="logo">Greenpot</span>
<img class="logo-img"src="https://www.pinclipart.com/picdir/big/2-23395_clipart-green-leaf-png-clipart-transparent-png.png">
<span class="example-fill-remaining-space"></span>
import { Injectable } from '@angular/core';
import { BehaviorSubject, Observable } from 'rxjs';
import { AngularFireAuth } from '@angular/fire/auth';
import { auth } from 'firebase/app';
@Injectable({
providedIn: 'root'
})
export class AuthService {
constructor(public fireAuth: AngularFireAuth){
import { Component, OnInit } from '@angular/core';
import { NgForm } from '@angular/forms';
import { AuthService } from '../auth.service';
import { Router, RoutesRecognized } from '@angular/router';
import { AppRoutingModule } from '../app-routing.module'
@Component({
selector: 'app-signin',
templateUrl: './signin.component.html',