Giter VIP home page Giter VIP logo

mini-pms's Introduction

Hi there ๐Ÿ‘‹, I'm Vichea ๐Ÿ˜Ž

A software engineer with experience in software development. I want to contribute to keeping an open web, developing apps, and building communities.

Vichea's GitHub stats-Dark Vichea's GitHub stats-Light
Harlok's wakatime stats Top Langs Top Langs

An image of @vicheanath's Holopin badges, which is a link to view their full Holopin profile

Linkedin Youtube Instagram

mini-pms's People

Contributors

dbunthai avatar hebronmelles avatar samidinish avatar vicheanath avatar yonatanembiza avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

dbunthai

mini-pms's Issues

[Bug] : Worng flow with refresh token auth

Bug Description

should be sent refresh to send to get the access token

Actual Behavior

refresh token API doesn't take any request

Expected Behavior

should be like this sequence diagram

sequenceDiagram
    participant User
    participant ReactApp
    participant SpringServer

    Note over User, ReactApp: 1. User initiates authentication
    ReactApp->>+User: Redirect to Login Page
    User-->>-ReactApp: Enters Credentials

    Note over ReactApp: 2. Frontend sends credentials to backend
    ReactApp->>+SpringServer: POST /login {username, password}
    SpringServer-->>-ReactApp: Responds with JWT (Access Token and Refresh Token)

    Note over ReactApp, SpringServer: 3. Store tokens securely in the frontend

    Note over ReactApp, SpringServer: 4. Access Protected Resource
    ReactApp->>+SpringServer: GET /api/resource {Authorization: Bearer <Access Token>}
    SpringServer-->>-ReactApp: Returns Protected Resource

    Note over ReactApp, SpringServer: 5. Access Token Expiry Detected
    ReactApp->>+SpringServer: POST /refresh {refreshToken}
    SpringServer-->>-ReactApp: Responds with new Access Token

    Note over ReactApp: Continue accessing resources with new Access Token

Loading

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.