Skip to content

Instantly share code, notes, and snippets.

View rdehnhardt's full-sized avatar
🌍
Working from home

Renato Dehnhardt rdehnhardt

🌍
Working from home
View GitHub Profile
@rdehnhardt
rdehnhardt / api.dart
Last active August 16, 2023 08:36
Flutter App with Laravel Sanctum (XSRF TOKEN)
import 'package:dio/dio.dart';
import 'package:curl_logger_dio_interceptor/curl_logger_dio_interceptor.dart';
import 'interceptors/csrf_token_interceptor.dart';
class Api {
final Dio dio;
Api(this.dio) : super() {
dio.interceptors.addAll([