feat(auth): add BankID OAuth provider

This commit is contained in:
2025-10-11 21:16:53 +02:00
parent 32764ab1b0
commit a91aea805f
5 changed files with 107 additions and 4 deletions

View File

@@ -1,13 +1,12 @@
from typing import List
from sqlalchemy import Column, String
from sqlalchemy.orm import relationship
from sqlalchemy.orm import relationship, mapped_column, Mapped
from fastapi_users.db import SQLAlchemyBaseUserTableUUID, SQLAlchemyBaseOAuthAccountTableUUID
from app.core.base import Base
class OAuthAccount(SQLAlchemyBaseOAuthAccountTableUUID, Base):
pass
# BankID token is longer than default
access_token: Mapped[str] = mapped_column(String(length=4096), nullable=False)
class User(SQLAlchemyBaseUserTableUUID, Base):