<commit_before>package request

import (
	"context"
	"github.com/ory/fosite"
)

/* These functions provide a concrete implementation of fosite.AccessTokenStorage */

func (m *MongoManager) CreateAccessTokenSession(ctx context.Context, signature string, request fosite.Requester) (err error) {
	return
}

func (m MongoManager) GetAccessTokenSession(ctx context.Context, signature string, session fosite.Session) (request fosite.Requester, err error) {
	return
}

func (m *MongoManager) DeleteAccessTokenSession(ctx context.Context, signature string) (err error) {
	return
}<commit_msg>:arrow_up: request: Implement required concrete CreateAccessTokenSession methods<commit_after>package request

import (
	"context"
	"github.com/ory/fosite"
)

/* These functions provide a concrete implementation of fosite.AccessTokenStorage */

// CreateAccessTokenSession creates a new session for an Access Token in mongo
func (m *MongoManager) CreateAccessTokenSession(ctx context.Context, signature string, request fosite.Requester) (err error) {
	return m.createSession(signature, request, mongoCollectionAccessTokens)
}

// GetAccessTokenSession returns a session if it can be found by signature in mongo
func (m MongoManager) GetAccessTokenSession(ctx context.Context, signature string, session fosite.Session) (request fosite.Requester, err error) {
	return m.findSessionBySignature(signature, session, mongoCollectionAccessTokens)
}

// DeleteAccessTokenSession removes an Access Tokens current session from mongo
func (m *MongoManager) DeleteAccessTokenSession(ctx context.Context, signature string) (err error) {
	return m.deleteSession(signature, mongoCollectionAccessTokens)
}
{'fraction_non_alphanumeric': 0.0794979079497908, 'fraction_numerical': 0.0, 'mean_word_length': 6.609090909090909, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4661183', 'n_tokens_mistral': 450, 'n_tokens_neox': 451, 'n_words': 145}