Skip to content

Instantly share code, notes, and snippets.

View sangress's full-sized avatar
💾
coding

Shai Angress sangress

💾
coding
View GitHub Profile
Shader "Unlit/WorldMapHighlight"
{
Properties{
_Color ("Tint", Color) = (0, 0, 0, 1)
_FullColor ("Full Color", Color) = (0, 0, 0, 1)
_MainTex ("Texture", 2D) = "white" {}
// _HighlightUV ("highlightUV", Vector) = (0, 0, 0, 1)
_HighlightUV ("Highlight", Color) = (0, 0, 0, 1)
}
@Injectable()
export class AuthInterceptor implements HttpInterceptor {
constructor(private authService: AuthService, private localStorageService: LocalStorageService ) {}
intercept(req: HttpRequest<any>, next: HttpHandler) {
const authRequest = req.clone({});
return next.handle(authRequest);
return next.handle(authRequest).pipe(
filter(event => event instanceof HttpResponse),
tap((event: HttpResponse<any>) => {