---
title: "Discussion on \"Networking In Flutter: 🔥Interceptors🔥\" | Hashnode"
description: "Discussion on \"Networking In Flutter: 🔥Interceptors🔥\". What is Auth and How Does It Work? What is Interceptor? How to add Interceptors to Network Requests and Response? How to store Auth Token?"
url: "https://hashnode.com/posts/networking-in-flutter-interceptors/6209da3452bfb318205e5b86"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Networking In Flutter: 🔥Interceptors🔥](https://dhruvnakum.xyz/networking-in-flutter-interceptors?utm_source=hashnode&utm_medium=feed)

What is Auth and How Does It Work? What is Interceptor? How to add Interceptors to Network Requests and Response? How to store Auth Token?

Feb 14, 2022 · 10 min read · dhruvnakum.xyz  
Read the article

-   [#flutter](https://hashnode.com/tag/flutter)
-   [#dart](https://hashnode.com/tag/dart)
-   [#networking](https://hashnode.com/tag/networking)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)

## Written by

[Dhruv Nakum](https://hashnode.com/@Dhruv-Nakum)

@Dhruv-Nakum · India

  
[View profile](https://hashnode.com/@Dhruv-Nakum)

Developer 👨‍💻

I'm a mobile/web developer 👨‍💻 who loves to build projects and share valuable tips for programmers Follow me for Flutter, React/Next.js, and other awesome tech-related stuff 😉

## Responses 3

Markdown supported · ⌘↵ to post

[Solomon Laleye](https://hashnode.com/@Solomonium)

[Oct 13, 2022](https://hashnode.com/posts/networking-in-flutter-interceptors/6209da3452bfb318205e5b86/comment/6347f4538213b93556f3163b)

Awesome article... I love this, simple, concise, and straightforward.

However, how can the app check for user inactivity for a short period and logs the user out using dio interceptor, especially on network calls for security reasons on the app, Can you please explain how?

Thank you so much

[stngcoding](https://hashnode.com/@stng)

[Sep 18, 2022](https://hashnode.com/posts/networking-in-flutter-interceptors/6209da3452bfb318205e5b86/comment/63274b997ae3b59ef0066581)

How do you handle wrong email or password case?, I can't make BLoC to emitt to LogInFailed

[Nestor Marquez](https://hashnode.com/@NestorDevs)

[Feb 28, 2022](https://hashnode.com/posts/networking-in-flutter-interceptors/6209da3452bfb318205e5b86/comment/621d1f37c07e2ceec78601d1)

hello, excellent article... I have a question... how would it be when an api comes with a request to refresh the token every so often? I know Dio does that but how would it be? Thank you

[Dhruv Nakum](https://hashnode.com/@Dhruv-Nakum)

[Mar 2, 2022](https://hashnode.com/posts/networking-in-flutter-interceptors/6209da3452bfb318205e5b86/comment/621d1f37c07e2ceec78601d1#reply-621fa101aa0b9716581fb809)

Check [this](https://pub.dev/packages/fresh_dio) out.
