Skip to content

Instantly share code, notes, and snippets.

@asadbek064
Created July 23, 2020 19:43
Show Gist options
  • Select an option

  • Save asadbek064/6c3e38810003879790cc9133907484be to your computer and use it in GitHub Desktop.

Select an option

Save asadbek064/6c3e38810003879790cc9133907484be to your computer and use it in GitHub Desktop.
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
@Injectable({
providedIn: 'root'
})
export class AuthService {
constructor(
private http: HttpClient
) { }
sendToken(token) {
return this.http.post<any>('http://localhost:3000/recaptcha/validate_token', {recaptcha: token});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment